-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (48 loc) · 1.3 KB
/
cicd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: CICD
on: push
env:
CARGO_TERM_COLOR: always
jobs:
build-clippy:
name: Build and Clippy
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- run: cargo build
- run: cargo clippy -- -D warnings
test:
name: Test
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Download testing comprehensive repo
run: |
git clone https://github.com/Python-World/python-mini-projects.git sample-comprehensive
cd sample-comprehensive
git reset --hard e0cfd4b0fe5e0bb4d443daba594e83332d5fb720
rm -r .github
cd -
- run: cargo test
python-test:
name: Python Test
# needs: [build-clippy, test]
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Run Python tests
run: |
python -m venv ./python_venv
source python_venv/bin/activate
pip install -r python_requirements.txt
maturin develop --release
python python/test.py
python -m unittest discover