pypi trusted publishing #566
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will install tsfc and run its unit tests | |
name: tsfc integration | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
tsfc-tests: | |
name: Run TSFC tests | |
runs-on: ubuntu-latest | |
env: | |
CC: gcc-10 | |
CXX: g++-10 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.9 | |
- name: Install UFL | |
run: | | |
pip3 install . | |
- name: Clone tsfc | |
uses: actions/checkout@v3 | |
with: | |
path: ./tsfc | |
repository: firedrakeproject/tsfc | |
ref: mscroggs/gdim | |
- name: Install tsfc | |
run: | | |
cd tsfc | |
pip install -r requirements-ext.txt | |
pip install git+https://github.com/coneoproject/COFFEE.git#egg=coffee | |
pip install git+https://github.com/firedrakeproject/fiat.git#egg=fenics-fiat | |
pip install git+https://github.com/FInAT/FInAT.git@mscroggs/gdim#egg=finat | |
pip install git+https://github.com/firedrakeproject/loopy.git#egg=loopy | |
pip install .[ci] | |
pip install pytest | |
- name: Run tsfc unit tests | |
run: python3 -m pytest tsfc/tests |