update for latest c2d api #575
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
# Builds a dockerimage and then runs tests from within the docker enviroment | |
name: CI with docker build | |
on: | |
pull_request: | |
branches: | |
- develop | |
- main | |
paths: | |
- "**.py" | |
- "**.ipynb" | |
- "**.yml" | |
- "**.cfg" | |
- "**.toml" | |
- "**.sh" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Build with Docker | |
run: docker build -t paramak --build-arg cq_version=master . | |
- name: Run unit tests | |
run: docker run --rm paramak pytest ./tests/tests_units | |
- name: Test examples | |
run: docker run --rm paramak pytest ./tests/tests_examples | |
# tests_show require jupyter_cadquery which is not available on conda | |
# therefore these tests have been separated out to help with the conda | |
# testing. The tests_h5m tests require CQ master which is tested separately as well | |
- name: Test show | |
run: docker run --rm paramak pytest ./tests/tests_show |