-
Notifications
You must be signed in to change notification settings - Fork 54
50 lines (41 loc) · 1.2 KB
/
tests.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: Run tests
on:
push:
branches:
- '**'
tags:
- '**'
pull_request:
branches: [ master ]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: install_python
run: |
sudo apt-get update -qy
sudo apt-get install -y python3-dev python3-pip python3-venv libxml2-dev libxslt-dev zlib1g-dev
# Upgrade to latest meson and ninja
sudo pip install --upgrade meson ninja
# needs fenics only to run test_poisson_nernst_planck_solver_fenics
- name: install_fenics
run: |
sudo apt-get install -y --no-install-recommends software-properties-common
sudo add-apt-repository -y ppa:fenics-packages/fenics
sudo apt-get update -qy
sudo apt-get install -y fenics python3-dolfin python3-mshr
- name: build_c
run: |
sudo pip install .[test]
- name: pytest
run: |
cd tests
pytest -v --junitxml=report.xml --durations=20
- name: report
uses: mikepenz/action-junit-report@v2
if: always()
with:
report_paths: "**/report.xml"