-
Notifications
You must be signed in to change notification settings - Fork 129
44 lines (36 loc) · 933 Bytes
/
cargo.yml
File metadata and controls
44 lines (36 loc) · 933 Bytes
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
name: CI
on:
push:
branches: master
paths:
- cargo/**
pull_request:
branches: master
paths:
- cargo/**
defaults:
run:
working-directory: cargo
jobs:
cargo:
permissions:
contents: read
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
# 4.2.2
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
persist-credentials: false
- name: Setup Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
sudo ln -s /github/home/.local/bin/poetry /usr/bin/poetry
- name: Install python dependencies
run: poetry sync --all-groups --all-extras
- name: Check code formatting
run: poetry run ruff format --check
- name: Lint
run: poetry run ruff check --output-format=github
- name: Check python types
run: poetry run mypy .