Skip to content

Bump actions/upload-artifact from 6 to 7 (#997) #2577

Bump actions/upload-artifact from 6 to 7 (#997)

Bump actions/upload-artifact from 6 to 7 (#997) #2577

Workflow file for this run

name: FFCx integration
# Install Basix and FFCx and run the FFCx unit tests.
on:
pull_request:
branches:
- main
push:
branches:
- "main"
merge_group:
branches:
- main
workflow_dispatch:
inputs:
ffcx_branch:
description: "FFCx branch or tag"
default: "main"
type: string
ufl_branch:
description: "UFL branch or tag"
default: "main"
type: string
jobs:
build:
name: Run FFCx tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.13'
- name: Install dependencies
run: sudo apt-get install -y libopenblas-dev liblapack-dev graphviz libgraphviz-dev ninja-build
- name: Install UFL (default branch)
if: github.event_name != 'workflow_dispatch'
run: pip install git+https://github.com/FEniCS/ufl.git
- name: Install UFL (specified branch)
if: github.event_name == 'workflow_dispatch'
run: pip install git+https://github.com/FEniCS/ufl.git@${{ github.event.inputs.ufl_branch }}
- name: Install Basix
run: pip -v install .[ci]
- name: Get FFCx source (default branch)
if: github.event_name != 'workflow_dispatch'
uses: actions/checkout@v6
with:
path: ./ffcx
repository: FEniCS/ffcx
ref: main
- name: Get FFCx source (specified branch)
if: github.event_name == 'workflow_dispatch'
uses: actions/checkout@v6
with:
path: ./ffcx
repository: FEniCS/ffcx
ref: ${{ github.event.inputs.ffcx_branch }}
- name: Install FFCx
run: pip install ./ffcx[ci]
- name: Run FFCx tests
working-directory: ffcx/test
run: >
pytest .
-n auto
--ignore=ffcx/test/test_lnodes.py
--ignore=ffcx/test/test_custom_data.py