Skip to content

Commit

Permalink
Merge pull request #110 from dolfin-adjoint/dokken/dolfin_adjoint_reg…
Browse files Browse the repository at this point in the history
…ression

Update circleci tests to run dolfin-adjoint tests and migration tests
  • Loading branch information
jorgensd authored Aug 25, 2023
2 parents f126802 + fd88db5 commit 42959ef
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
# Download and cache dependencies
- restore_cache:
keys:
- v2-dependencies-{{ checksum "setup.py" }}
# fallback to using the latest cache if no exact match is found
- v2-dependencies-
- v2-dependencies-{{ checksum "setup.py" }}
# fallback to using the latest cache if no exact match is found
- v2-dependencies-

- run:
name: install dependencies
Expand All @@ -49,20 +49,30 @@ jobs:

- restore_cache:
keys:
- v3-dolfin-jit-cache
- v3-dolfin-jit-cache

- run:
name: Flake8 tests
command: |
python3 -m flake8
- run:
name: Install dolfin-adjoint
command: |
git clone https://github.com/dolfin-adjoint/dolfin-adjoint ~/dolfin-adjoint
python3 -m pip install -e ~/dolfin-adjoint[all]
# run tests!
- run:
name: Run tests
command: |
coverage run --source=fenics_adjoint,pyadjoint -m pytest tests/fenics_adjoint/ tests/pyadjoint/
coverage run --source=fenics_adjoint -m pytest ~/dolfin-adjoint/tests/fenics_adjoint/
coverage report
coverage html
- run:
name: Flake8 tests
name: Run migration tests
command: |
python3 -m flake8
python3 -m pytest ~/dolfin-adjoint/tests/migration
- save_cache:
key: v2-dolfin-jit-cache
Expand All @@ -81,7 +91,6 @@ jobs:
docker:
- image: firedrakeproject/firedrake:latest


working_directory: ~/repo

steps:
Expand Down Expand Up @@ -120,7 +129,6 @@ jobs:
- store_artifacts:
path: htmlcov


workflows:
version: 2
all:
Expand Down

0 comments on commit 42959ef

Please sign in to comment.