Skip to content

Commit 9445eaf

Browse files
committed
fix workflow
1 parent ba34c76 commit 9445eaf

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/publish.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ jobs:
2121
python-version: ${{ matrix.python-version }}
2222
- name: pre-commit
2323
uses: pre-commit/[email protected]
24-
- name: Install from source
25-
run: pip install .
26-
- name: Test with pytest
27-
run: nosetests
24+
- name: Install packages
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install pytest
28+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
29+
pip install .
2830
build-n-publish:
2931
needs: tests
3032
runs-on: ubuntu-latest

.github/workflows/tests.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929
uses: actions/setup-python@v4
3030
with:
3131
python-version: ${{ matrix.python-version }}
32+
- name: Install packages
33+
run: |
34+
python -m pip install --upgrade pip
35+
pip install pytest
36+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3237
- name: pre-commit
3338
uses: pre-commit/[email protected]
3439
- name: Test with pytest

0 commit comments

Comments
 (0)