Skip to content

Commit 55b067a

Browse files
committed
build: use requirements.txt files
1 parent 6f347e9 commit 55b067a

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ jobs:
4747
- name: Install dependencies
4848
run: |
4949
python -m pip install --upgrade pip
50-
pip install pytest pytest-cov sortedcontainers
51-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
50+
pip install -r requirements/pytest.txt
5251
- name: Test with pytest
5352
run: |
5453
pytest
@@ -66,7 +65,7 @@ jobs:
6665
- name: Install dependencies
6766
run: |
6867
python -m pip install --upgrade pip
69-
pip install flake8
68+
pip install -r requirements/flake8.txt
7069
- name: Lint with flake8
7170
run: |
7271
# stop the build if there are Python syntax errors or undefined names

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-r requirements/common.txt

requirements/common.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sortedcontainers==2.4.0

requirements/flake8.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
flake8

requirements/pytest.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-r common.txt
2+
pytest
3+
pytest-cov

0 commit comments

Comments
 (0)