-
Notifications
You must be signed in to change notification settings - Fork 47
53 lines (49 loc) · 1.13 KB
/
python-test-with-style.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
name: Python
on:
push:
branches:
- main
pull_request:
jobs:
test:
strategy:
matrix:
os: [ubuntu-24.04]
compiler: [gcc-13]
python-version: ['3.x']
runs-on: ${{ matrix.os }}
steps:
- name: Environment setup
uses: actions/checkout@v4
- name: Python setup
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Python dependencies
run: |
pip install -r requirements.txt
pip install -r requirements-test.txt
- name: Python test
env:
CC: ${{ matrix.compiler }}
FC: gfortran-13
run: |
make info
make -j2
export CEED_DIR=$PWD
pip install .
cd python/tests
PYTHON=python3 make test TEST_OPTS="--ceed /cpu/self/ref/serial -vv"
cd ../..
- name: Python style
env:
CC: ${{ matrix.compiler }}
FC: gfortran-13
run: |
make format-py && git diff --exit-code
- name: Python version
env:
CC: ${{ matrix.compiler }}
FC: gfortran-13
run: |
make vermin