-
Notifications
You must be signed in to change notification settings - Fork 2
63 lines (51 loc) · 1.13 KB
/
ci.yaml
File metadata and controls
63 lines (51 loc) · 1.13 KB
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
58
59
60
61
62
63
name: CI
on:
pull_request:
permissions:
id-token: write
contents: read
env:
PYTEST_ADDOPTS: "--color=yes"
jobs:
test:
name: Test
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Check out Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Env
uses: ./.github/actions/setup_env
- name: Test with pytest
id: tests
run: |
pytest --disable-warnings ./
formatting:
name: Formatting
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check out Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Ruff Formatting
uses: astral-sh/ruff-action@v3.5.0
with:
version-file: "requirements/requirements_test.txt"
args: "format --check"
linting:
name: Linting
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check out Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Ruff Linting
uses: astral-sh/ruff-action@v3.5.0
with:
version-file: "requirements/requirements_test.txt"