-
Notifications
You must be signed in to change notification settings - Fork 22
52 lines (44 loc) · 1.56 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
51
name: CI testing
on:
pull_request:
branches:
- develop
- main
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- name: Install system packages
run: |
sudo apt-get update -y
sudo apt-get install -y libgl1 libglx-mesa0 libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev libosmesa6 libosmesa6-dev libgles2-mesa-dev libarchive-dev libpangocairo-1.0-0
- name: checkout actions
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: install dependencies
run: |
python -m pip install .
python -c "import paramak"
- name: Test with pytest
run: |
python -m pip install .[tests]
pytest -v
python examples/plasma.py
python examples/spherical_tokamak_from_plasma_minimal.py
python examples/spherical_tokamak_from_plasma_with_divertor.py
python examples/spherical_tokamak_from_plasma_with_pf_magnets_and_divertors.py
python examples/spherical_tokamak_from_plasma_with_pf_magnets.py
python examples/spherical_tokamak_from_plasma_with_tf_magnets.py
python examples/spherical_tokamak_minimal.py
python examples/tokamak_from_plasma_with_divertor.py
python examples/tokamak_minimal.py
python examples/tokamak_from_plasma_minimal.py