Merge pull request #45 from kjkoeller/kjkoeller-patch-2 #174
This file contains hidden or 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" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| env: | |
| SETUP_XVFB: True # avoid issues if mpl tries to open a GUI window | |
| TOXARGS: '-v' | |
| jobs: | |
| ci-tests: | |
| name: ${{ matrix.name }} | |
| runs-on: ${{ matrix.os }} | |
| if: "!(contains(github.event.head_commit.message, '[skip ci]') || contains(github.event.head_commit.message, '[ci skip]'))" | |
| strategy: | |
| matrix: | |
| include: | |
| - name: ubuntu-py312 | |
| os: ubuntu-latest | |
| python: "3.12" | |
| tox_env: py312 | |
| - name: ubuntu-py312-cov | |
| os: ubuntu-latest | |
| python: "3.12" | |
| tox_env: py312-cov | |
| - name: ubuntu-py312-oldestdeps | |
| os: ubuntu-latest | |
| python: "3.12" | |
| tox_env: py312-oldestdeps | |
| - name: ubuntu-py312-alldeps | |
| os: ubuntu-latest | |
| python: "3.12" | |
| tox_env: py312-alldeps | |
| - name: macos-py312 | |
| os: macos-latest | |
| python: "3.12" | |
| tox_env: py312 | |
| - name: windows-py312 | |
| os: windows-latest | |
| python: "3.12" | |
| tox_env: py312 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: Install base dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install tox wheel setuptools | |
| - name: Print Python, pip, setuptools, and tox versions | |
| run: | | |
| python -c "import sys; print(f'Python {sys.version}')" | |
| python -c "import pip; print(f'pip {pip.__version__}')" | |
| python -c "import setuptools; print(f'setuptools {setuptools.__version__}')" | |
| python -c "import tox; print(f'tox {tox.__version__}')" | |
| - name: Run tests | |
| run: | | |
| tox -e ${{ matrix.tox_env }} -- ${{ matrix.toxposargs }} | |
| - name: Upload coverage to Codecov | |
| if: "matrix.tox_env == 'py312-cov'" | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |