-
Notifications
You must be signed in to change notification settings - Fork 30
82 lines (78 loc) · 2.35 KB
/
Copy pathci.yaml
File metadata and controls
82 lines (78 loc) · 2.35 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: CI
on: [push, pull_request]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-tags: true
- uses: actions/setup-python@v6
with:
python-version: '3.10'
# Make sure that `git describe` (used by Hatch to dynamically generate the version) knows the Git history, but no data about trees/blobs is needed.
- run: git fetch --prune --unshallow --filter=tree:0
- run: python3 -m pip install --editable . --group types
- uses: pre-commit/action@v3.0.1
test-yaml:
runs-on: ubuntu-latest
container: ragnargrootkoerkamp/bapctools
steps:
- uses: actions/checkout@v6
- run: bash test/yaml/validate_yaml.sh
test-ubuntu:
runs-on: ubuntu-latest
container: ragnargrootkoerkamp/bapctools
steps:
- uses: actions/checkout@v6
- run: git config --global --add safe.directory "$(pwd)"
- run: git fetch --prune --unshallow --filter=tree:0
- run: |
python3 -m venv .venv
. .venv/bin/activate
pip install -U pip
pip install -e .
pip install pytest
pip install PyYAML
pytest
test-wsl:
runs-on: windows-latest
steps:
- run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v6
- run: git fetch --prune --unshallow --filter=tree:0
- uses: Vampire/setup-wsl@v6
with:
distribution: Ubuntu-24.04
wsl-version: 2
additional-packages:
python3
python3-pip
python3-venv
pypy3
build-essential
default-jre
default-jdk
kotlin
texlive
texlive-latex-base
texlive-latex-recommended
texlive-latex-extra
lmodern
texlive-science
latexmk
texlive-lang-german
asymptote
- shell: wsl-bash {0}
run: |
python3 -m venv .venv
. .venv/bin/activate
pip install -U pip
pip install vermin
pip install checktestdata
pip install -e .
pip install pytest
pip install PyYAML
pytest