Skip to content

Commit cf4103c

Browse files
authored
Update publish-backend.yml
1 parent fa8431b commit cf4103c

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/workflows/publish-backend.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Package and Publish to PyPi
1+
name: Package and Publish
22

33
on:
44
release:
@@ -36,16 +36,21 @@ jobs:
3636
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3737
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3838
39-
- name: Test with pytest
39+
- name: Run unit tests
40+
shell: bash -l {0}
4041
run: |
41-
pytest --cov=chartlets
42-
42+
pytest --cov=chartlets --cov-report=xml
43+
4344
- name: Upload coverage reports to Codecov
44-
uses: codecov/codecov-action@v3
45-
env:
46-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
45+
uses: codecov/codecov-action@v4
46+
with:
47+
fail_ci_if_error: true
48+
directory: chartlets.py/
49+
flags: backend
50+
verbose: true
51+
token: ${{ secrets.CODECOV_TOKEN }}
4752

48-
PyPi-deploy:
53+
PyPi-Deploy:
4954
name: Publish Python Package to PyPI
5055
runs-on: ubuntu-latest
5156
needs: python-tests

0 commit comments

Comments
 (0)