Skip to content

Commit 737c0f3

Browse files
authored
Merge pull request #205 from Rust-Data-Science/wip-move-code-style
Move ut out of CI
2 parents d2f5110 + 105d498 commit 737c0f3

File tree

3 files changed

+41
-10
lines changed

3 files changed

+41
-10
lines changed

.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+
# 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

.github/workflows/main.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
name: CI
1+
name: Unit Tests
22

3-
# Controls when the workflow will run
43
on:
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

@@ -42,4 +38,4 @@ jobs:
4238
- name: Python UnitTest
4339
run: |
4440
cd tests
45-
sh run.sh
41+
pytest ../tests

tests/run.sh renamed to tests/test.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ echo "Running clippy..."
99
cargo clippy --manifest-path ../ulist/Cargo.toml || EXIT_STATUS=$?
1010
echo "\n"
1111

12-
echo "Running unit tests..."
13-
pytest ../tests|| EXIT_STATUS=$?
14-
echo "\n"
15-
1612
echo "Running flake8..."
1713
flake8 ../tests|| EXIT_STATUS=$?
1814
flake8 ../ulist/python|| EXIT_STATUS=$?

0 commit comments

Comments
 (0)