Skip to content

Commit 644a62d

Browse files
ajz34claudebigmodel88
committed
ci: add GitHub Actions workflow for testing
Co-Authored-By: Claude Code <noreply@anthropic.com> Co-Authored-By: glm-5 <service@zhipuai.cn>
1 parent 7da31b6 commit 644a62d

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
push:
8+
branches: [master]
9+
pull_request:
10+
branches: [master]
11+
workflow_dispatch:
12+
13+
jobs:
14+
test:
15+
name: Test
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Install Rust toolchain
23+
uses: dtolnay/rust-toolchain@stable
24+
25+
- name: Install Python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: "3.x"
29+
30+
- name: Install basis_set_exchange
31+
run: pip install basis_set_exchange
32+
33+
- name: Generate Python reference files
34+
working-directory: tests/python_ref
35+
run: |
36+
for i in *.py; do python "$i"; done
37+
38+
- name: Run cargo test
39+
run: cargo test

0 commit comments

Comments
 (0)