Skip to content

Commit 0bbfcad

Browse files
authored
Fix CI (#30)
1 parent 0ff96f3 commit 0bbfcad

File tree

3 files changed

+20
-23
lines changed

3 files changed

+20
-23
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
---
2-
name: ci
2+
name: CI
3+
34
on:
45
pull_request:
5-
paths:
6-
- "**/**"
6+
types:
7+
- opened
8+
- reopened
9+
- synchronize
710

811
permissions:
9-
contents: write
12+
contents: read
1013
checks: write
11-
pull-requests: write
1214

1315
jobs:
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/

.github/workflows/release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,21 @@ jobs:
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__

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)