File tree Expand file tree Collapse file tree 3 files changed +20
-23
lines changed
Expand file tree Collapse file tree 3 files changed +20
-23
lines changed Original file line number Diff line number Diff line change 11---
2- name : ci
2+ name : CI
3+
34on :
45 pull_request :
5- paths :
6- - " **/**"
6+ types :
7+ - opened
8+ - reopened
9+ - synchronize
710
811permissions :
9- contents : write
12+ contents : read
1013 checks : write
11- pull-requests : write
1214
1315jobs :
1416 lint :
@@ -52,24 +54,13 @@ jobs:
5254 - name : Set up Python
5355 uses : actions/setup-python@v6
5456 with :
55- python-version : " 3.12 "
57+ python-version : " 3.14 "
5658
5759 - name : Install Dependencies
5860 run : |
5961 python -m pip install --upgrade pip
60- pip install flake8 pytest pytest-cov
61- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
62-
63- - name : Build coverage file
64- run : |
65- pytest tests/ --cov=fitbit_cli --junitxml=/tmp/pytest.xml | tee /tmp/pytest-coverage.txt
62+ pip install pytest pytest-cov
6663
67- - name : Build coverage file
64+ - name : Run tests with coverage
6865 run : |
69- pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=app tests/ | tee pytest-coverage.txt
70-
71- - name : Pytest coverage comment
72- uses : MishaKav/pytest-coverage-comment@main
73- with :
74- pytest-coverage-path : ./pytest-coverage.txt
75- junitxml-path : ./pytest.xml
66+ pytest --cov=fitbit_cli tests/
Original file line number Diff line number Diff line change 99 name : Publish to PyPI
1010 runs-on : ubuntu-slim
1111 steps :
12- - uses : actions/checkout@v6
12+ - name : Checkout Code
13+ uses : actions/checkout@v6
14+ with :
15+ fetch-depth : 0
16+
1317 - name : Set up Python
1418 uses : actions/setup-python@v6
1519 with :
16- python-version : " 3.x"
20+ python-version : " 3.14"
21+
1722 - name : Install dependencies
1823 run : |
1924 python -m pip install --upgrade pip
2025 pip install setuptools wheel twine
26+
2127 - name : Build and publish
2228 env :
2329 TWINE_USERNAME : __token__
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ Use sparingly and only when justified:
186186
187187## CI/CD
188188
189- - ** ci.yml** : Runs on PRs. Executes ` super-linter ` (black + isort + pylint; flake8/ruff disabled) then ` pytest --cov ` on Python 3.12 .
189+ - ** ci.yml** : Runs on PRs. Executes ` super-linter ` (black + isort + pylint; flake8/ruff disabled) then ` pytest --cov ` on Python 3.14 .
190190- ** release.yml** : Triggered on GitHub Release creation. Publishes to PyPI via ` twine ` .
191191- ** dependabot.yml** : Weekly updates for ` pip ` and ` github-actions ` dependencies.
192192
You can’t perform that action at this time.
0 commit comments