From fe6459846d2ff4fa625b1aabe0f983bb8e7fde18 Mon Sep 17 00:00:00 2001 From: Simon Blanke Date: Tue, 9 Jan 2024 08:21:10 +0100 Subject: [PATCH] add yml for docker-tests --- .github/workflows/docker_tests.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/docker_tests.yml diff --git a/.github/workflows/docker_tests.yml b/.github/workflows/docker_tests.yml new file mode 100644 index 0000000..a20ec8c --- /dev/null +++ b/.github/workflows/docker_tests.yml @@ -0,0 +1,21 @@ +name: Pytest with Docker +# workflow triggered by any push on any branch +on: [push] +jobs: + build: + name: Pytest + # runs on the latest Ubuntu + runs-on: ubuntu-latest + + # runs within your Docker container + container: + image: ghcr.io/simonblanke/surfaces-testing-image:latest + + # checkout your code from your repository + # and runs pytest in your pipenv environment + steps: + - uses: actions/checkout@v2 + - name: Test with pytest + run: | + python -m pytest tests --cov=surfaces --cov-report=term-missing --cov-report=xml -p no:warnings + \ No newline at end of file