-
Notifications
You must be signed in to change notification settings - Fork 25
42 lines (39 loc) · 994 Bytes
/
pr_checks.yml
File metadata and controls
42 lines (39 loc) · 994 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
name: Run checks on PR
on:
push:
branches: [ "trunk" ]
pull_request:
branches: [ "trunk" ]
jobs:
Linter:
runs-on: ubuntu-latest
container:
image: python:3.12
steps:
- uses: actions/checkout@v4
- name: Prepare python environment
run: |
pip install --no-cache-dir "cython<3.0.0"
pip install --no-cache-dir -r requirements.txt -r requirements-dev.txt
pip install .
- name: Run linter
run: flake8 .
Test-Runner:
runs-on: ubuntu-latest
container:
image: python:3.12
steps:
- uses: actions/checkout@v4
- name: Prepare python environment
run: |
pip install --no-cache-dir "cython<3.0.0"
pip install --no-cache-dir -r requirements.txt -r requirements-dev.txt
pip install .
- name: Run Tests
run: pytest
Copyright:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run copyright checker
run: ./check_copyright.sh