new docker workflow #1
Workflow file for this run
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
name: Docker CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Pull and build Docker image | |
run: | | |
docker pull dolfinx/dolfinx:stable | |
docker run -d --name fenicsx dolfinx/dolfinx:stable | |
- 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 | |
run: | | |
curl -Os https://uploader.codecov.io/latest/linux/codecov | |
chmod +x codecov | |
./codecov -t ${CODECOV_TOKEN} |