Skip to content

update for latest c2d api #571

update for latest c2d api

update for latest c2d api #571

# 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