Skip to content

Commit adc322f

Browse files
update GitHub actions to install optional dependencies when installing pygambit instead of using requirements.txt
1 parent a90a137 commit adc322f

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/python.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,13 @@ jobs:
2222
run: |
2323
python -m pip install --upgrade pip
2424
pip install setuptools build cython wheel
25-
pip install -r tests/requirements.txt
26-
pip install -r doc/requirements.txt
2725
- name: Build source distribution
2826
run:
2927
python -m build
3028
- name: Build from source distribution
3129
run: |
3230
cd dist
33-
pip install -v pygambit*.tar.gz
31+
pip install -v "pygambit[test,doc] @ pygambit*.tar.gz"
3432
- name: Run tests
3533
run: pytest --run-tutorials
3634

@@ -51,11 +49,9 @@ jobs:
5149
run: |
5250
python -m pip install --upgrade pip
5351
pip install setuptools build cython wheel
54-
pip install -r tests/requirements.txt
55-
pip install -r doc/requirements.txt
5652
- name: Build extension
5753
run: |
58-
python -m pip install -v .
54+
python -m pip install -v .[test,doc]
5955
- name: Run tests
6056
run: pytest --run-tutorials
6157

@@ -76,11 +72,9 @@ jobs:
7672
run: |
7773
python -m pip install --upgrade pip
7874
pip install setuptools build cython wheel
79-
pip install -r tests/requirements.txt
80-
pip install -r doc/requirements.txt
8175
- name: Build extension
8276
run: |
83-
python -m pip install -v .
77+
python -m pip install -v .[test,doc]
8478
- name: Run tests
8579
run: pytest --run-tutorials
8680

@@ -101,10 +95,8 @@ jobs:
10195
run: |
10296
python -m pip install --upgrade pip
10397
pip install setuptools build cython wheel
104-
pip install -r tests/requirements.txt
105-
pip install -r doc/requirements.txt
10698
- name: Build extension
10799
run: |
108-
python -m pip install -v .
100+
python -m pip install -v .[test,doc]
109101
- name: Run tests
110102
run: pytest --run-tutorials

0 commit comments

Comments
 (0)