generated from scientificcomputing/example-paper
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from scientificcomputing/finsberg/updates
A bunch of updates
- Loading branch information
Showing
23 changed files
with
703 additions
and
423 deletions.
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Simple workflow for deploying static content to GitHub Pages | ||
name: Reproduce results | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["main"] | ||
|
||
# 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:2023-08-16 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Cache | ||
id: cache | ||
uses: actions/cache@v3 | ||
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: cd data && bash download_data.sh && cd .. | ||
|
||
- name: Run pre-processing | ||
run: cd code && python3 pre_processing.py && cd .. | ||
|
||
- name: Run simulation | ||
run: cd code && python3 run_fiber_generation.py && cd .. | ||
|
||
- name: Postprocess | ||
run: cd code && python3 postprocess.py && cd .. | ||
|
||
- name: Upload artifact | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: | | ||
./data/mesh | ||
./code/results | ||
if-no-files-found: error |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,42 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: check-docstring-first | ||
- id: debug-statements | ||
- id: requirements-txt-fixer | ||
- id: check-added-large-files | ||
- id: check-toml | ||
|
||
- repo: https://github.com/asottile/reorder_python_imports | ||
rev: v3.8.3 | ||
- repo: https://github.com/asottile/add-trailing-comma | ||
rev: v3.1.0 | ||
hooks: | ||
- id: reorder-python-imports | ||
- id: add-trailing-comma | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 22.10.0 | ||
rev: 23.10.1 | ||
hooks: | ||
- id: black | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.0.0 | ||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
# Ruff version. | ||
rev: 'v0.1.4' | ||
hooks: | ||
- id: flake8 | ||
- id: ruff | ||
|
||
- repo: https://github.com/asottile/add-trailing-comma | ||
rev: v2.3.0 | ||
hooks: | ||
- id: add-trailing-comma | ||
|
||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v0.982 | ||
rev: v1.6.1 | ||
hooks: | ||
- id: mypy | ||
additional_dependencies: | ||
- types-requests | ||
|
||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.1.0 | ||
- repo: https://github.com/streetsidesoftware/cspell-cli | ||
rev: v7.3.2 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py38-plus] | ||
- id: cspell | ||
files: docs/(.+).md|README.md|code/demo.py |
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
format: jb-book | ||
root: index | ||
root: README | ||
|
||
chapters: | ||
- file: docs/abstract | ||
|
Oops, something went wrong.