Skip to content

Commit

Permalink
ci: upgrade test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
ntarocco committed Mar 4, 2024
1 parent 4d08282 commit cd1e8be
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,36 +29,24 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
requirements-level: [pypi]
python-version: ['3.9', '3.10', '3.11', '3.12']
env:
EXTRAS: tests
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Generate dependencies
run: |
pip install wheel requirements-builder
requirements-builder -e "$EXTRAS" ${{ matrix.requirements-file }} --level=${{ matrix.requirements-level }} setup.py > .${{ matrix.requirements-level }}-${{ matrix.python-version }}-requirements.txt
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('.${{ matrix.requirements-level }}-${{ matrix.python-version }}-requirements.txt') }}
cache: 'pip'
cache-dependency-path: ${{ runner.os }}-pip-${{ hashFiles('setup.cfg') }}-${{ matrix.python-version }}

- name: Install dependencies
run: |
pip install -r .${{ matrix.requirements-level }}-${{ matrix.python-version }}-requirements.txt
pip install -e .[$EXTRAS]
pip freeze
- name: Run tests
run: |
./run-tests.sh
run: ./run-tests.sh

0 comments on commit cd1e8be

Please sign in to comment.