Skip to content

Bump version: 0.6.2 → 0.6.3 #252

Bump version: 0.6.2 → 0.6.3

Bump version: 0.6.2 → 0.6.3 #252

name: Python packages Windows
on:
release:
types: [published]
push:
jobs:
build:
runs-on: windows-latest
strategy:
max-parallel: 4
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
pyside_ver: ['6.6.2']
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- name: add qt dir to path
run: |
echo "${{github.workspace}}\Qt\${{ matrix.pyside_ver }}\msvc2019_64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Set python interpreter
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64
- name: Install deps
run: |
pip install --upgrade "meson" "ninja" "numpy" "meson-python>=0.14.0" "build" "wheel" "twine" "auditwheel" "aqtinstall"
pip install "PySide6==${{ matrix.pyside_ver }}"
pip install --index-url=http://download.qt.io/official_releases/QtForPython/ --trusted-host download.qt.io "shiboken6_generator==${{ matrix.pyside_ver }}"
aqt install-qt -O $env:GITHUB_WORKSPACE\Qt windows desktop ${{ matrix.pyside_ver }} win64_msvc2019_64
- name: Build package
run: |
python3 -m build --wheel --no-isolation .
- name: Save packages as artifacts
uses: actions/upload-artifact@v3
with:
name: sciqlopplots-windows-${{ matrix.python-version }}
path: dist/*
- name: Publish on PyPi
if: github.event.release
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: twine upload --skip-existing dist/*
- name: Publish on PyPi (test)
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TEST_PASSWORD }}
run: twine upload --repository testpypi --skip-existing dist/*.whl