-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (43 loc) · 1.5 KB
/
python-app.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
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: FEniCSx-FUS CI
on:
push:
branches:
- "**"
schedule:
# '*' is a special character in YAML, so string must be quoted
- cron: "0 1 * * *"
jobs:
build:
runs-on: ubuntu-latest
container: dolfinx/dolfinx:nightly
env:
CC: gcc
CXX: g++
PETSC_ARCH: linux-gnu-real64-32
OMPI_ALLOW_RUN_AS_ROOT: 1
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1
OMPI_MCA_rmaps_base_oversubscribe: 1
OMPI_MCA_plm: isolated
OMPI_MCA_btl_vader_single_copy_mechanism: none
OMPI_MCA_mpi_yield_when_idle: 1
OMPI_MCA_hwloc_base_binding_policy: none
steps:
- uses: actions/checkout@v4
- name: Install linting tools
run: python3 -m pip -v install --break-system-packages ruff
- name: Install Python test dependencies
run: python3 -m pip -v install --break-system-packages pytest
- name: Install Python package dependencies
run: python3 -m pip -v install --break-system-packages scipy
- name: Install fenicsxfus package
run: python3 -m pip -v install --break-system-packages python/ --no-cache-dir
- name: ruff checks
run: |
ruff check python/tests/
ruff format --check python/src/fenicsxfus/
- name: Run tests
run: |
cd python/
pytest tests/