Skip to content

Commit eaa4451

Browse files
author
Dan Hertz
committed
update publish action
1 parent ee5960a commit eaa4451

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/build-test-deploy.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,17 @@ jobs:
1919
python -m pip install --upgrade pip
2020
pip install -r dev-requirements.txt
2121
pip install -e .
22-
- name: Test with unittest
22+
- name: Lint with flake8
23+
run: |
24+
# stop the build if there are Python syntax errors or undefined names
25+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
26+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
27+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
28+
- name: Test with pytest
2329
env:
24-
NIGHTFALL_CONDITION_SET: ${{ secrets.NIGHTFALL_CONDITION_SET }}
25-
NIGHTFALL_TOKEN: ${{ secrets.NIGHTFALL_TOKEN }}
30+
NIGHTFALL_API_KEY: ${{ secrets.NIGHTFALL_API_KEY }}
2631
run: |
27-
python -m unittest discover
32+
pytest -m "not filetest" --cov=nightfall --cov-report term-missing tests
2833
- name: Build a binary wheel and source tarball
2934
run: |
3035
python -m build --sdist --wheel --outdir dist/

.github/workflows/build-test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,5 @@ jobs:
2929
- name: Test with pytest
3030
env:
3131
NIGHTFALL_API_KEY: ${{ secrets.NIGHTFALL_API_KEY }}
32-
WEBHOOK_ENDPOINT: ${{ secrets.WEBHOOK_ENDPOINT }}
3332
run: |
3433
pytest -m "not filetest" --cov=nightfall --cov-report term-missing tests

0 commit comments

Comments
 (0)