1+
12name : Build Status
23
34on :
78 tags :
89 - v*
910 paths-ignore :
10- - CONTRIBUTING.md
1111 - LICENSE
1212 - README.md
1313 pull_request :
14+ branches :
15+ - main
1416 workflow_dispatch :
1517
1618concurrency :
@@ -29,49 +31,60 @@ jobs:
2931 strategy :
3032 matrix :
3133 os : [ubuntu-latest, macos-latest, windows-latest]
32- python-version : [3.9 ]
34+ python-version : ["3.11" ]
3335
3436 steps :
3537 - uses : actions/checkout@v4
3638
37- - name : Set up Rust
38- uses : actions-rs/toolchain@v1
39- with :
40- profile : minimal
41- toolchain : stable
42- components : clippy
43- override : true
44-
4539 - name : Set up Python ${{ matrix.python-version }}
4640 uses : actions/setup-python@v5
4741 with :
4842 python-version : ${{ matrix.python-version }}
49- cache : " pip"
50- cache-dependency-path : pyproject.toml
43+ cache : ' pip'
44+ cache-dependency-path : ' pyproject.toml'
45+
46+ - name : Set up Rust
47+ uses : dtolnay/rust-toolchain@stable
48+ with :
49+ toolchain : stable
50+ components : clippy, rustfmt
5151
5252 - name : Install dependencies
5353 run : make develop
5454
55- - name : Build
56- run : make build
57-
5855 - name : Lint
5956 run : make lint
57+ if : ${{ matrix.os == 'ubuntu-latest' }}
58+
59+ - name : Checks
60+ run : make checks
61+ if : ${{ matrix.os == 'ubuntu-latest' }}
62+
63+ - name : Build
64+ run : make build
6065
6166 - name : Test
62- run : make tests-ci
67+ run : make coverage
6368 if : ${{ matrix.os == 'ubuntu-latest' }}
6469
65- - name : Upload test results
70+ - name : Upload test results (Python)
71+ uses : actions/upload-artifact@v4
72+ with :
73+ name : pytest-results-${{ matrix.os }}-${{ matrix.python-version }}
74+ path : junit.xml
75+ if : ${{ always() }}
76+
77+ - name : Publish Unit Test Results
6678 uses : EnricoMi/publish-unit-test-result-action@v2
6779 with :
68- check_name : Test Results
69- github_token : ${{ secrets.GITHUB_TOKEN }}
7080 files : |
71- rust/junit.xml
72- junit.xml
81+ **/junit.xml
7382 if : ${{ matrix.os == 'ubuntu-latest' }}
7483
7584 - name : Upload coverage
7685 uses : codecov/codecov-action@v4
86+
87+ - name : Make dist
88+ run : make dist
7789 if : ${{ matrix.os == 'ubuntu-latest' }}
90+
0 commit comments