Skip to content

Commit 38f27f5

Browse files
committed
fix(ci): Install dev dependencies in CI
1 parent 7685fd7 commit 38f27f5

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.github/workflows/test-and-lint.yaml

+14-14
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ jobs:
2525
python-version: 3.11
2626
cache: pip
2727
cache-dependency-path: |
28-
requirements.txt
28+
requirements-dev.txt
2929
pyproject.toml
3030
- name: Install dependencies
3131
run: |
32-
pip install -r requirements.txt
32+
pip install -r requirements-dev.txt
3333
pip install -e . --no-deps
3434
- name: Cache pre-commit tools
3535
uses: actions/cache@v4
@@ -38,7 +38,7 @@ jobs:
3838
${{ env.MYPY_CACHE_DIR }}
3939
${{ env.RUFF_CACHE_DIR }}
4040
${{ env.PRE_COMMIT_HOME }}
41-
key: ${{ hashFiles('requirements.txt', '.pre-commit-config.yaml') }}-linter-cache
41+
key: ${{ hashFiles('requirements-dev.txt', '.pre-commit-config.yaml') }}-linter-cache
4242
- name: Run pre-commit checks
4343
run: pre-commit run --all-files --verbose --show-diff-on-failure
4444
test:
@@ -47,15 +47,15 @@ jobs:
4747
strategy:
4848
fail-fast: false
4949
matrix:
50-
os: [ ubuntu-latest ]
50+
os: [ubuntu-latest]
5151
steps:
52-
- uses: actions/checkout@v4
53-
- name: Set up oldest supported Python on ${{ matrix.os }}
54-
uses: actions/setup-python@v5
55-
with:
56-
python-version: '3.10'
57-
- name: Run tests on oldest supported Python
58-
run: |
59-
python -m pip install -r requirements.txt
60-
python -m pip install .
61-
pytest
52+
- uses: actions/checkout@v4
53+
- name: Set up oldest supported Python on ${{ matrix.os }}
54+
uses: actions/setup-python@v5
55+
with:
56+
python-version: "3.10"
57+
- name: Run tests on oldest supported Python
58+
run: |
59+
pip install -r requirements-dev.txt
60+
pip install -e . --no-deps
61+
pytest

0 commit comments

Comments
 (0)