-
Notifications
You must be signed in to change notification settings - Fork 42
63 lines (55 loc) · 1.5 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
name: test
on: [push, pull_request, workflow_dispatch]
jobs:
indent:
name: indent
runs-on: [ubuntu-20.04]
strategy:
matrix:
python-versions: ['3.12']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-versions }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-versions }}
- name: make indent
run: |
python -m pip install black
./contrib/utilities/indent
git diff > changes-astyle.diff
- name: archive indent results
uses: actions/upload-artifact@v2
with:
name: changes-astyle.diff
path: changes-astyle.diff
- name: check indentation
run: |
git diff --exit-code
linux:
name: test
runs-on: [ubuntu-20.04]
strategy:
matrix:
python-versions: ['3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-versions }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-versions }}
- name: setup
run: |
# pycddlib requires libgmp3-dev
sudo apt update && sudo apt install --yes \
numdiff \
libgmp3-dev \
texlive \
texlive-latex-extra
python -m pip install --upgrade pip
pip install pycddlib # this is optional
pip install autograd # this is optional
python --version
- name: test
run: |
PYTHON=python ./test.sh