-
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (56 loc) · 2.1 KB
/
Copy pathinstalling.yml
File metadata and controls
61 lines (56 loc) · 2.1 KB
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
name: "Test instructions from installing.rst"
on:
push:
branches:
- "**"
- "!gh-pages"
pull_request:
branches:
- main
schedule:
- cron: "0 3 * * SUN"
workflow_dispatch:
jobs:
test_dolfinx_docker:
runs-on: ubuntu-latest
container: ghcr.io/fenics/dolfinx/dolfinx:stable
steps:
- name: Install multiphenicsx build requirements
run: python3 -m pip install nanobind scikit-build-core[pyproject]
- name: Install multiphenicsx
run: python3 -m pip install --no-build-isolation 'multiphenicsx[tutorials]'
test_dolfinx_apt:
runs-on: ubuntu-latest
container: debian:testing
steps:
- name: Install dolfinx
run: |
apt update -y -q
apt install -y -qq fenicsx python3-pip
- name: Install multiphenicsx build requirements
run: apt install -y -qq python3-nanobind python3-scikit-build-core
- name: Install multiphenicsx
run: python3 -m pip install --break-system-packages --no-build-isolation 'multiphenicsx[tutorials]'
test_dolfinx_conda:
runs-on: ubuntu-latest
# This is necessary to ensure conda environment is activated in every step.
defaults:
run:
shell: bash -el {0}
steps:
- uses: conda-incubator/setup-miniconda@8ee1f361103df19b6f8c8655fd3967a8ecb162d5 # v4.0.1
- name: Install dolfinx
run: conda install -c conda-forge fenics-dolfinx mpich pyvista
- name: Install multiphenicsx build requirements
run: conda install -c conda-forge nanobind scikit-build-core
- name: Install multiphenicsx
run: python3 -m pip install --no-build-isolation 'multiphenicsx[tutorials]'
warn:
runs-on: ubuntu-latest
if: github.repository == 'multiphenics/multiphenics.github.io' && github.ref == 'refs/heads/main' && github.event_name == 'schedule'
steps:
- name: Warn if scheduled workflow is about to be disabled
uses: fem-on-colab/warn-workflow-about-to-be-disabled-action@58c6022d9aeb22accfa8df9bf5b58c3d8867208c # v1.0.0
with:
workflow-filename: installing.yml
days-elapsed: 50