Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TST: switch CI to Python 3.11, and other test housekeeping tasks #148

Merged
merged 1 commit into from
Jan 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 39 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ jobs:
tests:
strategy:
matrix:
os: [
ubuntu-latest,
macos-latest,
windows-latest,
]
python-version: [
'3.8',
'3.10',
]
os:
- ubuntu-latest
- macos-latest
- windows-latest
python-version:
- '3.8'
- '3.11'

runs-on: ${{ matrix.os }}
timeout-minutes: 30

Expand All @@ -34,7 +33,36 @@ jobs:
- name: Setup package
run: |
python -m pip install --upgrade pip
python -m pip install .[dev]
python -m pip install ".[dev]"
- name: Run tests
run: |
pytest
pytest --color=yes


type-check:
runs-on: ubuntu-latest
name: type check

concurrency:
group: ${{ github.ref }}-dev
cancel-in-progress: true

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
with:
# Match minimal supported Python version
# to make sure we're not using unparseable syntax
python-version: '3.8'

- name: Build
run: |
python3 -m pip install --upgrade pip
python3 -m pip install .[typecheck]

- name: Run mypy
run: mypy amical
34 changes: 0 additions & 34 deletions .github/workflows/type-checking.yaml

This file was deleted.