-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (51 loc) · 1.26 KB
/
develo.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
54
55
56
57
name: Development CI
on: push
permissions:
contents: read
jobs:
cattus:
runs-on: ubuntu-latest
permissions:
contents: read
checks: write
steps:
# Setup
- name: Get repo
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.77.0
components: clippy
cache-workspaces: cattus-engine
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -e .
working-directory: cattus-train
# Build
- name: Build Rust
run: cargo build
working-directory: cattus-engine
# Linters
- name: Rust Clippy linter
uses: auguwu/clippy-action@1.4.0
with:
working-directory: cattus-engine
token: ${{ secrets.GITHUB_TOKEN }}
- name: Python Ruff linter
uses: chartboost/ruff-action@v1
with:
args: check cattus-train
# Tests
- name: Rust tests
run: cargo test
working-directory: cattus-engine
- name: Python tests
run: pytest -s
working-directory: cattus-train