-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (35 loc) · 988 Bytes
/
run_tests.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
# name: Run tests, pre-commit stuff and type checking for parselmouth
on:
push:
branches: [ "main" ]
pull_request:
jobs:
run_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9' # Specify your Python version
- uses: prefix-dev/[email protected]
with:
pixi-version: "latest"
manifest-path: pyproject.toml
- name: run tests
run: |
pixi run run-tests
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up pixi
uses: prefix-dev/[email protected]
with:
environments: >-
fmt
type-checking
- name: pre-commit
run: pixi run pre-commit-run --color=always --show-diff-on-failure --all
- name: type check
run: pixi run type-check