-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (61 loc) · 1.55 KB
/
main.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
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Run checks on push or PR to main
on:
push:
branches: [main]
pull_request:
branches:
- main
jobs:
# TODO: Currently not super efficient because it will try to install the environment
# check-lockfile:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: prefix-dev/[email protected]
# with:
# pixi-version: v0.25.0
# cache: true
# locked: true
# environments: >-
# default
# dev
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/[email protected]
with:
pixi-version: v0.25.0
cache: true
frozen: true
environments: dev
activate-environment: dev
- run: ruff check
if: success() || failure()
- run: ruff format --check
if: success() || failure()
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/[email protected]
with:
pixi-version: v0.25.0
cache: true
frozen: true
environments: default
activate-environment: default
- run: pyright
if: success() || failure()
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/[email protected]
with:
pixi-version: v0.25.0
cache: true
frozen: true
environments: default
activate-environment: default
- run: pytest tests