update for latest c2d api #571
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 CI will lauch a Docker image that contains all the dependencies required | |
# within that image the pytest test suite is run | |
name: CI with install | |
on: | |
pull_request: | |
branches: | |
- develop | |
- main | |
paths: | |
- "**.py" | |
- "**.ipynb" | |
- "**.yml" | |
- "**.cfg" | |
- "**.toml" | |
- "**.sh" | |
jobs: | |
testing: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/fusion-energy/paramak_cq_master:dependencies | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: install package | |
run: | | |
pip install --upgrade pip | |
pip install . | |
python -c "import paramak" | |
- name: install package with tests | |
run: | | |
pip install .[tests] | |
- name: Run tests | |
run: | | |
pytest tests/tests_units -v --cov=src/paramak --cov-append --cov-report term --cov-report xml | |
pytest tests/tests_examples -v --cov=src/paramak --cov-append --cov-report term --cov-report xml | |
pytest tests/tests_show -v --cov=src/paramak --cov-append --cov-report term --cov-report xml | |
- name: Upload to codecov | |
uses: codecov/codecov-action@v2 |