Skip to content

Fix #685 (#686)

Fix #685 (#686) #1019

Workflow file for this run

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"
workflow_dispatch: ~
jobs:
build:
name: Build and test (Red Hat)
runs-on: ubuntu-22.04
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 blas-devel cmake gcc gcc-c++ git lapack-devel python3 python3-devel python3-pip
- uses: actions/checkout@v3
- name: Install Basix
run: |
python3 -m pip install .[test]
- name: Run units tests
run: |
python3 -m pip install pytest-xdist
python3 -m pytest -n auto --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