-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (47 loc) · 1.22 KB
/
ci.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
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
test:
strategy:
max-parallel: 5
matrix:
env:
- py39
- py310
- py311
- py312
os:
- ubuntu-latest
- windows-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Setup pixi
uses: prefix-dev/setup-pixi@ba3bb36eb2066252b2363392b7739741bb777659 # v0.8.1
with:
environments: ${{ matrix.env }}
- name: Install repository
run: |
pixi run -e ${{ matrix.env }} postinstall
- name: Run tests
run: |
pixi run -e ${{ matrix.env }} test --color=yes
- name: Type checking
run: |
pixi run -e ${{ matrix.env }} mypy mkdocs_marimo
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Setup pixi
uses: prefix-dev/setup-pixi@ba3bb36eb2066252b2363392b7739741bb777659 # v0.8.1
with:
environments: lint default
- name: Lint
run: |
pixi run lint-all-check