File tree Expand file tree Collapse file tree 3 files changed +41
-10
lines changed Expand file tree Collapse file tree 3 files changed +41
-10
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ # Controls when the workflow will run
4+ on :
5+ # Triggers the workflow on pull request and release events
6+ pull_request :
7+ release :
8+ types : [published]
9+
10+
11+ # Allows you to run this workflow manually from the Actions tab
12+ workflow_dispatch :
13+
14+
15+ jobs :
16+ linters :
17+ strategy :
18+ matrix :
19+ python-version : ['3.10']
20+ os : [ubuntu-latest]
21+ runs-on : ${{ matrix.os }}
22+ steps :
23+ - uses : actions/checkout@v2
24+ - uses : actions/setup-python@v2
25+ with :
26+ python-version : ${{ matrix.python-version }}
27+ - name : Install Rust toolchain
28+ uses : actions-rs/toolchain@v1
29+ with :
30+ toolchain : stable
31+ profile : minimal
32+ default : true
33+ - name : Install Python packages
34+ run : |
35+ pip install -r ./requirements/dev.txt
36+ - name : Python UnitTest
37+ run : |
38+ cd tests
39+ sh test.sh
Original file line number Diff line number Diff line change 1- name : CI
1+ name : Unit Tests
22
3- # Controls when the workflow will run
43on :
5- # Triggers the workflow on pull request and release events
64 pull_request :
75 release :
86 types : [published]
97
10-
11- # Allows you to run this workflow manually from the Actions tab
128 workflow_dispatch :
139
1410
4238 - name : Python UnitTest
4339 run : |
4440 cd tests
45- sh run.sh
41+ pytest ../tests
Original file line number Diff line number Diff line change @@ -9,10 +9,6 @@ echo "Running clippy..."
99cargo clippy --manifest-path ../ulist/Cargo.toml || EXIT_STATUS=$?
1010echo " \n"
1111
12- echo " Running unit tests..."
13- pytest ../tests|| EXIT_STATUS=$?
14- echo " \n"
15-
1612echo " Running flake8..."
1713flake8 ../tests|| EXIT_STATUS=$?
1814flake8 ../ulist/python|| EXIT_STATUS=$?
You can’t perform that action at this time.
0 commit comments