Skip to content

Merge pull request #16 from minrk/working-directory #28

Merge pull request #16 from minrk/working-directory

Merge pull request #16 from minrk/working-directory #28

# Simple workflow for deploying static content to GitHub Pages
name: Reproduce results
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
schedule:
- cron: "30 9 * * 1"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
workflow_call:
jobs:
run:
runs-on: ubuntu-22.04
container:
image: ghcr.io/scientificcomputing/fenics-gmsh:2024-02-19
steps:
- uses: actions/checkout@v4
- name: Cache
id: cache
uses: actions/cache@v4
with:
path: |
~/.cache/pip
key: cache_v1
restore-keys: |
cache_v1
- name: Install dependencies
run: python3 -m pip install -r requirements.txt
- name: Download data
run: bash download_data.sh
working-directory: data
- name: Run pre-processing
run: python3 code/pre_processing.py
- name: Run simulation
run: python3 code/run_fiber_generation.py
- name: Postprocess
run: python3 code/postprocess.py
- name: Upload artifact
if: always()
uses: actions/upload-artifact@v4
with:
path: |
./data/mesh
./code/results
if-no-files-found: error