File tree Expand file tree Collapse file tree 2 files changed +48
-5
lines changed
Expand file tree Collapse file tree 2 files changed +48
-5
lines changed Original file line number Diff line number Diff line change 11name : Artifacts
22
33on :
4- push :
5- branches :
6- - main
7- - next
84 release :
95 types :
106 - published
@@ -128,7 +124,6 @@ jobs:
128124 cache : pip
129125 cache-dependency-path : ' **/requirements.dev.txt'
130126 - run : pip install -r python/requirements.dev.txt
131- - run : cd python && python -m unittest test.py
132127 - run : maturin build -m python/Cargo.toml
133128 - run : pip install --no-index --find-links=target/wheels/ pyontoenv
134129 - run : rm -r target/wheels
Original file line number Diff line number Diff line change 1+ name : Tests
2+
3+ on :
4+ push :
5+ branches :
6+ - ' **' # Triggers on push to all branches
7+ pull_request :
8+ branches :
9+ - ' **' # Triggers on pull request to all branches
10+
11+ concurrency :
12+ group : ${{ github.workflow }}-${{ github.ref }}
13+ cancel-in-progress : true
14+
15+ jobs :
16+ build_and_test :
17+ runs-on : ubuntu-latest
18+ steps :
19+ # - run: cd python && python -m unittest test.py
20+ - uses : actions/checkout@v4
21+ with :
22+ submodules : true
23+ - uses : actions/setup-python@v4
24+ with :
25+ python-version : " 3.12"
26+ cache : pip
27+ cache-dependency-path : ' **/requirements.dev.txt'
28+ - uses : ./.github/actions/setup-rust
29+ with :
30+ target : aarch64-unknown-linux-gnu
31+ version : stable
32+ - run : |
33+ sudo apt-get update && sudo apt-get install -y g++-aarch64-linux-gnu libssl-dev
34+ mkdir .cargo
35+ echo -e "[target.aarch64-unknown-linux-gnu]\nlinker = \"aarch64-linux-gnu-gcc\"" >> .cargo/config.toml
36+ - name : Build rust stuff
37+ run : cargo build --workspace --release
38+ - name : Run rust tests
39+ run : cargo test --workspace --release
40+ - name : Build python stuff
41+ run : pip install -r python/requirements.dev.txt
42+ - name : Build python package
43+ run : maturin build --release --features abi3
44+ working-directory : ./python
45+ - name : Test python package
46+ run : python -m unittest test.py
47+ working-directory : ./python
48+
You can’t perform that action at this time.
0 commit comments