-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (46 loc) · 1.2 KB
/
code-qa-ci.yaml
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: Code QA CI
on: push
jobs:
python-ci:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10"]
defaults:
run:
working-directory: ./python/remotivelabs-broker
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: abatilo/actions-poetry@v2
- run: poetry self add 'poethepoet[poetry_plugin]'
- name: Generate stubs (and build package)
env:
NO_TTY: true
run: ./docker-build.sh
- run: poetry install
- name: run pytest
run: poetry poe test
- name: run ruff
run: poetry poe lint
- name: run mypy
run: poetry poe mypy-check
rust-cargo:
name: Rust cargo tasks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Build and run tests
run: |
pushd rust/remotivelabs-broker
cargo test
popd
- name: Check format
run: |
pushd rust/remotivelabs-broker
cargo fmt --check
popd