Skip to content

Commit

Permalink
fix(ci): Install dev dependencies in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianoKF committed Jul 11, 2024
1 parent 7685fd7 commit 38f27f5
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/test-and-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:
python-version: 3.11
cache: pip
cache-dependency-path: |
requirements.txt
requirements-dev.txt
pyproject.toml
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install -e . --no-deps
- name: Cache pre-commit tools
uses: actions/cache@v4
Expand All @@ -38,7 +38,7 @@ jobs:
${{ env.MYPY_CACHE_DIR }}
${{ env.RUFF_CACHE_DIR }}
${{ env.PRE_COMMIT_HOME }}
key: ${{ hashFiles('requirements.txt', '.pre-commit-config.yaml') }}-linter-cache
key: ${{ hashFiles('requirements-dev.txt', '.pre-commit-config.yaml') }}-linter-cache
- name: Run pre-commit checks
run: pre-commit run --all-files --verbose --show-diff-on-failure
test:
Expand All @@ -47,15 +47,15 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Set up oldest supported Python on ${{ matrix.os }}
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Run tests on oldest supported Python
run: |
python -m pip install -r requirements.txt
python -m pip install .
pytest
- uses: actions/checkout@v4
- name: Set up oldest supported Python on ${{ matrix.os }}
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Run tests on oldest supported Python
run: |
pip install -r requirements-dev.txt
pip install -e . --no-deps
pytest

0 comments on commit 38f27f5

Please sign in to comment.