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

Test Python 3.12. #205

Merged
merged 7 commits into from
Nov 9, 2023
Merged
Changes from 2 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
38 changes: 26 additions & 12 deletions .github/workflows/run-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,41 +16,55 @@ concurrency:
cancel-in-progress: true
jobs:
test:
name: test (${{ matrix.os }} ${{ matrix.python }} ${{ matrix.dependencies }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
config: [ {python: '3.8', dependencies: 'newest'},
{python: '3.9', dependencies: 'newest'},
{python: '3.10', dependencies: 'newest'},
{python: '3.11', dependencies: 'newest'},
{python: '3.11', dependencies: 'minimal'},
{python: '3.8', dependencies: 'oldest'} ]
os: [ubuntu-latest]
python: ['3.8', '3.9', '3.10', '3.11', '3.12']
include:
# Default to newest dependencies
- dependencies: 'newest'
# Test the oldest Python with the oldest supported dependencies.
- python: '3.8'
dependencies: 'oldest'
# Test the newest Python with both the newest and minimal dependencies.
- python: '3.12'
dependencies: 'newest'
- python: '3.12'
dependencies: 'minimal'
# Test macOS and windows only on latest version
- os: 'macos-latest'
python: '3.12'
dependencies: 'newest'
- os: 'windows-latest'
python: '3.12'
dependencies: 'newest'
cbkerr marked this conversation as resolved.
Show resolved Hide resolved
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Set up Python ${{ matrix.config.python }}
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.config.python }}
python-version: ${{ matrix.python }}
- name: Install newest dependencies
run: |
pip install -r requirements/requirements-test.txt
if: ${{ matrix.config.dependencies == 'newest' }}
if: ${{ matrix.dependencies == 'newest' }}
- name: Install minimal dependencies
run: |
pip install -r requirements/requirements-test.txt
if: ${{ matrix.config.dependencies == 'minimal' }}
if: ${{ matrix.dependencies == 'minimal' }}
- name: Install oldest supported dependencies
# To prevent Dependabot from updating the pinnings in this "oldest"
# dependency list, we have to avoid the word "requirements" in the
# filename. That's why it is in the .github/ directory and named "reqs"
# instead of "requirements."
run: |
pip install -r .github/workflows/ci-oldest-reqs.txt
if: ${{ matrix.config.dependencies == 'oldest' }}
if: ${{ matrix.dependencies == 'oldest' }}
- name: Install the package
run: |
pip install -e .
Expand Down