Skip to content

Commit

Permalink
Merge pull request #595 from jhdark/docker_ci_workflow
Browse files Browse the repository at this point in the history
new docker workflow
  • Loading branch information
jhdark authored Oct 11, 2023
2 parents 39060c6 + 340299f commit c95993e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
32 changes: 26 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI
on: [pull_request, push]

jobs:
build:
run-on-conda:
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -32,8 +32,28 @@ jobs:
pytest test/ --cov festim --cov-report xml --cov-report term
- name: Upload to codecov
shell: bash -l {0}
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${CODECOV_TOKEN}
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml

run-on-docker:
runs-on: ubuntu-latest
container: dolfinx/dolfinx:stable
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install local package and dependencies
run: |
pip install .[test]
- name: Run tests
run: |
python3 -m pytest test/ --cov festim --cov-report xml --cov-report term
- name: Upload to codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
2 changes: 2 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ignore:
- "festim/_version.py" # ignore version file

0 comments on commit c95993e

Please sign in to comment.