Skip to content

Commit

Permalink
tests: remove requirements-builder
Browse files Browse the repository at this point in the history
* creates problems on python3.12 and it exists an alternative.
  • Loading branch information
utnapischtim authored and lnielsen committed Mar 20, 2024
1 parent fe011bd commit 4ee36f9
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", "3.11"]
requirements-level: [pypi]
python-version: ["3.9", "3.10", "3.11", "3.12"]
env:
EXTRAS: tests
steps:
Expand All @@ -41,21 +40,11 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

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

- name: Install dependencies
run: |
pip install -r .${{matrix.requirements-level}}-${{ matrix.python-version }}-requirements.txt
pip install .[$EXTRAS]
pip freeze
docker --version
Expand Down

0 comments on commit 4ee36f9

Please sign in to comment.