Skip to content

Commit f1b9b6b

Browse files
github-actions[bot]dhondta
authored andcommitted
Updated coverage.svg
1 parent cc05c07 commit f1b9b6b

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

.github/workflows/publish-package.yml renamed to .github/workflows/python-package.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,14 @@ jobs:
2626
uses: actions/setup-python@v4
2727
with:
2828
python-version: ${{ matrix.python-version }}
29+
- name: Install pandoc
30+
run: sudo apt-get install -y pandoc
2931
- name: Install ${{ env.package }}
3032
run: |
3133
python -m pip install --upgrade pip
32-
python -m pip install flake8 pytest pytest-cov pytest-pythonpath coverage
34+
python -m pip install pytest pytest-cov pytest-pythonpath coverage
3335
pip install -r requirements.txt
3436
pip install .
35-
- name: Lint with flake8
36-
run: |
37-
# stop the build if there are Python syntax errors or undefined names
38-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
39-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
40-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
4137
- name: Test ${{ env.package }} with pytest
4238
run: |
4339
pytest --cov=$package
@@ -48,6 +44,12 @@ jobs:
4844
cov_badge_path: docs/coverage.svg
4945
steps:
5046
- uses: actions/checkout@v3
47+
- name: Set up Python ${{ matrix.python-version }}
48+
uses: actions/setup-python@v4
49+
with:
50+
python-version: "3.12"
51+
- name: Install pandoc
52+
run: sudo apt-get install -y pandoc notification-daemon
5153
- name: Install ${{ env.package }}
5254
run: |
5355
python -m pip install --upgrade pip
@@ -79,7 +81,7 @@ jobs:
7981
branch: ${{ github.ref }}
8082
deploy:
8183
runs-on: ubuntu-latest
82-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
84+
needs: coverage
8385
steps:
8486
- uses: actions/checkout@v3
8587
with:
@@ -97,8 +99,11 @@ jobs:
9799
sed -ri 's/^(##*)\s*:.*:\s*/\1 /g' README.md
98100
awk '{if (match($0,"## Supporters")) exit; print}' README.md > README
99101
mv -f README README.md
100-
- run: python3 -m pip install --upgrade build && python3 -m build
101-
- name: Upload ${{ env.package }} to PyPI
102+
- if: steps.filter.outputs.version == 'true'
103+
name: Build ${{ env.package }} package
104+
run: python3 -m pip install --upgrade build && python3 -m build
105+
- if: steps.filter.outputs.version == 'true'
106+
name: Upload ${{ env.package }} to PyPi
102107
uses: pypa/gh-action-pypi-publish@release/v1
103108
with:
104109
password: ${{ secrets.PYPI_API_TOKEN }}

docs/coverage.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)