-
Notifications
You must be signed in to change notification settings - Fork 492
54 lines (42 loc) · 1.21 KB
/
checks.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
name: Lint & Test
on:
pull_request:
branches:
- main
- develop*
push:
branches:
- main
- develop*
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
INFINIGEN_INSTALL_TERRAIN: False
INFINIGEN_INSTALL_CUSTOMGT: False
jobs:
checks:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Lint with ruff
run: |
pip install ruff
# stop the build if there are Python syntax errors or undefined names
ruff check --output-format=github --select=E9,F63,F7,F82 .
# default set of ruff rules with GitHub Annotations
ruff check --output-format=github .
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install infinigen & dependencies
run: |
pip install ".[dev]"
- name: Test with pytest
run: |
pytest tests -k 'not skip_for_ci'
- name: Check for copyright statements
run: |
ruff check --output-format=github --preview --select CPY001 .