Skip to content

Codecov

Codecov #20

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Tests & Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.13
uses: actions/setup-python@v4
with:
python-version: "3.13"
- name: Install PDM
run: |
python -m pip install --upgrade pip
pip install pdm
- name: Install dependencies
run: |
pdm install -G:all
- name: Run tests with coverage
run: |
pdm run pytest --cov=fitbit_client --cov-report=xml:coverage.xml
- name: Debug environment information
run: |
echo "Repository: ${{ github.repository }}"
echo "Slug: jpstroop/fitbit-client-python"
echo "Working directory: $(pwd)"
echo "GitHub ref: ${{ github.ref }}"
echo "GitHub SHA: ${{ github.sha }}"
ls -la
ls -la .git || echo "No .git directory"
- name: Download and run Codecov uploader with debug
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${{ secrets.CODECOV_TOKEN }} \
-f coverage.xml \
-n "github-action" \
-F github-action \
-v \
-R . \
-C ${{ github.sha }} \
-B ${{ github.ref_name }} \
--slug jpstroop/fitbit-client-python