Commit 5d952d3b by Bjorn Neergaard

ci: update to Ubuntu 22.04 and macOS 12

Testing against newer versions will help us keep abreast of any upcoming
issues. The older versions can be added as partial matrix entries if
desirable, but I do not believe this to be necessary.

Also re-order mypy in the workflow so that type errors fail fast (before
tests are run).
parent a614b9b1
...@@ -31,11 +31,11 @@ jobs: ...@@ -31,11 +31,11 @@ jobs:
python-version: ["3.7", "3.8", "3.9", "3.10"] python-version: ["3.7", "3.8", "3.9", "3.10"]
include: include:
- os: Ubuntu - os: Ubuntu
image: ubuntu-latest image: ubuntu-22.04
- os: Windows - os: Windows
image: windows-2022 image: windows-2022
- os: macOS - os: macOS
image: macos-11 image: macos-12
fail-fast: false fail-fast: false
defaults: defaults:
run: run:
...@@ -81,15 +81,15 @@ jobs: ...@@ -81,15 +81,15 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: poetry install run: poetry install
- name: Run mypy
run: poetry run mypy
- name: Install pytest plugin - name: Install pytest plugin
run: poetry run pip install pytest-github-actions-annotate-failures run: poetry run pip install pytest-github-actions-annotate-failures
- name: Run pytest - name: Run pytest
run: poetry run python -m pytest -p no:sugar -q tests/ run: poetry run python -m pytest -p no:sugar -q tests/
- name: Run mypy
run: poetry run mypy
- name: Run pytest (integration suite) - name: Run pytest (integration suite)
env: env:
POETRY_TEST_INTEGRATION_GIT_USERNAME: ${GITHUB_ACTOR} POETRY_TEST_INTEGRATION_GIT_USERNAME: ${GITHUB_ACTOR}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment