Unify two largely duplicate test workflows into one and add macos into matrix of OSes #2
Workflow file for this run
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: tests | |
| on: [push, pull_request] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| # Remember kids, the default shell on Windows is Powershell | |
| os: [linux-latest, macos-latest, windows-latest] | |
| python-version: [3.8, 3.9, "3.10", "3.11", "3.12", "3.13", "pypy-3.8", "pypy-3.10"] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install --upgrade setuptools | |
| pip install -r command_runner/requirements.txt | |
| - name: Generate Report | |
| env: | |
| RUNNING_ON_GITHUB_ACTIONS: true | |
| run: | | |
| pip install pytest coverage | |
| python -m coverage run -m pytest -vvs tests | |
| - name: Upload Coverage to Codecov | |
| uses: codecov/codecov-action@v3 |