Update changelog #235
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: Tests | |
on: | |
- push | |
- pull_request | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
# TODO add 3.12 to CI after we have moved from flakeheaven to ruff. Flakeheaven requires | |
# a (very) old version of flake8, which in turn requires a very old version of importlib_metadata. | |
# See: | |
# https://github.com/python/importlib_metadata/issues/411#issuecomment-1279757777 | |
# # https://github.com/flakeheaven/flakeheaven/issues/132 | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Nox | |
run: | | |
python -m pip install nox | |
- name: Install Poetry | |
run: | | |
python -m pip install poetry | |
- name: Run tests on ${{ matrix.os }} | |
run: nox --non-interactive --error-on-missing-interpreter --session "tests-${{ matrix.python-version }}" -- --full-trace | |
- name: Run integration tests on ${{ matrix.os }} | |
# not entirely sure why installing the package isn't required here | |
run: nox --non-interactive --error-on-missing-interpreter --session "integration-tests-${{ matrix.python-version }}" -- --full-trace | |
- name: Run isort on ${{ matrix.os }} | |
run: nox --non-interactive --error-on-missing-interpreter --session "lint-${{ matrix.python-version }}" -- --full-trace | |
- name: Run linting on ${{ matrix.os }} | |
run: nox --non-interactive --error-on-missing-interpreter --session "lint-${{ matrix.python-version }}" -- --full-trace | |
- name: Run mypy on ${{ matrix.os }} | |
run: nox --non-interactive --error-on-missing-interpreter --session "mypy-${{ matrix.python-version }}" -- --full-trace | |
- name: Create coverage report | |
if: matrix.python-version == 3.10 && matrix.os == 'ubuntu-latest' | |
run: nox --non-interactive --error-on-missing-interpreter --session "coverage-3.10" -- --full-trace | |
- name: Upload coverage to Codecov | |
if: matrix.python-version == 3.10 && matrix.os == 'ubuntu-latest' | |
uses: codecov/codecov-action@v2 |