File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,38 +19,37 @@ jobs:
1919 --health-interval 10s
2020 --health-timeout 5s
2121 --health-retries 5
22+
2223 steps :
2324 - name : Checkout code
2425 uses : actions/checkout@v4
2526
2627 - name : Set up Python
2728 uses : actions/setup-python@v5
2829 with :
29- # Prefer released versions or test a matrix of supported ones
30- python-version : " 3.12"
31-
32-
30+ python-version : ' 3.12'
3331
3432 - name : Install uv
3533 uses : astral-sh/setup-uv@v2
3634 with :
37- enable- cache : true # enables automatic actions/cache reuse
35+ cache : true
3836
3937 - name : Install dev dependencies with uv
4038 working-directory : api-server
4139 run : |
4240 uv sync --group dev
41+
4342 - name : Run tests with pytest and coverage
4443 working-directory : api-server
4544 run : |
46- uv run pytest --cov=app --cov-report=xml --cov-report=term-missing -v -q --junitxml=pytest-report.xml
47- - name: Upload coverage reports to Codecov
48- uses : codecov/codecov-action@v5
49- with :
50- token : ${{ secrets.CODECOV_TOKEN }}
51- slug : exospherehost/exospherehost
52- files : api-server/coverage.xml
53- flags : unittests
54- name : codecov-coverage-report
55- fail_ci_if_error : true
45+ uv run pytest --cov=app --cov-report=xml --cov-report=term-missing -v --junitxml=pytest-report.xml
5646
47+ - name : Upload coverage reports to Codecov
48+ uses : codecov/codecov-action@v5
49+ with :
50+ token : ${{ secrets.CODECOV_TOKEN }}
51+ slug : exospherehost/exospherehost
52+ files : api-server/coverage.xml
53+ flags : unittests
54+ name : codecov-coverage-report
55+ fail_ci_if_error : true
You can’t perform that action at this time.
0 commit comments