ci(dependabot): bump actions/setup-python from 4 to 5 #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "v*" | |
pull_request: {} | |
workflow_dispatch: | |
jobs: | |
check-manifest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: pipx run check-manifest | |
test: | |
name: ${{ matrix.platform }} ${{ matrix.python-version }} ${{ matrix.backend }} | |
runs-on: ${{ matrix.platform }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.7", "3.11"] | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
backend: [pyqt5, pyside2, pyqt6, pyside6] | |
exclude: | |
- backend: pyside2 # this is a superqt issue | |
python-version: "3.11" | |
include: | |
- backend: pyside2 | |
python-version: "3.10" | |
platform: ubuntu-latest | |
steps: | |
- name: 🛑 Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- uses: actions/checkout@v4 | |
- uses: tlambert03/setup-qt-libs@v1 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install .[test] | |
pip install ${{ matrix.backend }} | |
- name: Test | |
uses: aganders3/[email protected] | |
with: | |
run: python -m pytest | |
deploy: | |
name: Deploy | |
needs: test | |
if: "success() && startsWith(github.ref, 'refs/tags/')" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.x" | |
- name: install | |
run: | | |
git tag | |
pip install --upgrade pip | |
pip install -U build twine check-manifest | |
- name: build | |
run: | | |
check-manifest | |
python -m build | |
twine check dist/* | |
- name: 🚢 Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.TWINE_API_KEY }} | |
- uses: softprops/action-gh-release@v1 | |
with: | |
generate_release_notes: true |