Skip to content

Commit 57ce845

Browse files
authored
Merge pull request #58 from kumiori/andres-joss-review
Andres joss review - cleaning tests & CI workflow
2 parents 358d04b + a790009 commit 57ce845

File tree

599 files changed

+393
-28568
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

599 files changed

+393
-28568
lines changed

.github/workflows/pull-image.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

.github/workflows/workflow.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Run Tests in Docker Container
2+
run-name: We are testing irrevolutions
3+
4+
on:
5+
push:
6+
branches:
7+
- "**"
8+
9+
jobs:
10+
set-up-computing-environment:
11+
runs-on: ubuntu-latest
12+
container: kumiori3/numerix:stable-amd64
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Install dependencies
19+
run: python3 -m pip install .
20+
21+
- name: Test import
22+
run: python3 -c "import irrevolutions"
23+
24+
- name: Run 1d test
25+
run: pytest -v test/test_1d.py
26+
27+
- name: Run tests
28+
run: cd test && pytest -v .

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,7 @@ docs/build/
5151
test_*/
5252
src/irrevolutions/test/output/*
5353
**/output/**
54-
**egg-info**
54+
**egg-info**
55+
56+
# python virtual environment
57+
.venv/**

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include irrevolutions/models/default_parameters.yml

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ On a windows box:
4545
docker run --rm -ti -v "C:/...":/home/numerix" -w /home/numerix kumiori3\numerix:latest
4646
```
4747

48+
To install the software, run DOLFINx through the aforementioned docker container and install the irrevolutions-package with
49+
50+
```python3 -m pip install .```
51+
52+
from the root of this repository
53+
54+
4855
This code was initially conceived as a support for the teaching course MEC647,
4956
(Complex) Crack Propagation in Brittle Materials, delivered to the students of the international
5057
master programme, joint between École Polytechnique and ENSTA-Paristech throughout 2020-2022.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)