We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f9ee0b commit 61224aeCopy full SHA for 61224ae
1 file changed
.github/workflows/ci.yml
@@ -2,9 +2,9 @@ name: CI
2
3
on:
4
push:
5
- branches: [master]
+ branches: [main]
6
pull_request:
7
8
9
jobs:
10
lint:
@@ -16,8 +16,10 @@ jobs:
16
python-version: "3.12"
17
- run: pip install ruff
18
- run: ruff check src/ tests/
19
+ - run: ruff format --check src/ tests/
20
21
test:
22
+ needs: lint
23
runs-on: ubuntu-latest
24
strategy:
25
matrix:
@@ -31,10 +33,7 @@ jobs:
31
33
run: |
32
34
pip install pynvml psutil click pyyaml rich prometheus-client pytest pytest-cov ruff
35
- name: Run tests
- run: pytest tests/ -v --tb=short
- - name: Run tests with JUnit output
36
- if: always()
37
- run: pytest tests/ --junitxml=test-results.xml --tb=short
+ run: pytest tests/ -v --tb=short --junitxml=test-results.xml
38
- name: Upload test results
39
if: always()
40
uses: actions/upload-artifact@v4
0 commit comments