Skip to content

Commit f596924

Browse files
committed
trying some changes to actions
1 parent f7871fc commit f596924

File tree

2 files changed

+48
-5
lines changed

2 files changed

+48
-5
lines changed

.github/workflows/artifacts.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: Artifacts
22

33
on:
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

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+

0 commit comments

Comments
 (0)