first pass #3
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: Pytest unit/integration | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
# Use bash by default in all jobs | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build-test: | |
name: Test Run (${{ matrix.python-version }}, ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-latest"] | |
# os: ["ubuntu-latest", "macos-latest", "windows-latest"] | |
python-version: ["3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install nox | |
- name: List installed packages | |
run: pip list | |
- name: Run tests with pytest & nox | |
run: | | |
nox -s test-${{ matrix.python-version }} | |
# Codecov is only free for open source / public repos. Not really needed anyway | |
# - name: Upload coverage to Codecov | |
# if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'}} | |
# uses: codecov/codecov-action@v3 | |