-
-
Notifications
You must be signed in to change notification settings - Fork 33
45 lines (42 loc) · 1.15 KB
/
redhat.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
name: Red Hat clone
# This workflow will test Basix on Red Hat
on:
schedule:
# '*' is a special character in YAML, so string must be quoted
- cron: "0 2 * * TUE"
pull_request:
branches:
- main
push:
branches:
- "main"
merge_group:
branches:
- main
workflow_dispatch: ~
jobs:
build:
name: Build and test (Red Hat)
runs-on: ubuntu-latest
container: rockylinux/rockylinux:9
env:
CC: gcc
CXX: g++
steps:
- name: Install dependencies
run: |
dnf -y update
dnf install -y dnf-plugins-core
dnf config-manager --set-enabled crb
dnf install -y openblas-devel cmake gcc gcc-c++ git lapack-devel python3 python3-devel python3-pip
- name: Upgrade pip
run: python3 -m pip install pip --upgrade
- uses: actions/checkout@v4
- name: Install Basix
run: python3 -m pip install .[test]
- name: Run units tests
run: python3 -m pytest --durations 20 test/
- name: Run Python demos
run: python3 -m pytest demo/python/test.py
- name: Run C++ demos
run: python3 -m pytest demo/cpp/test.py