Run Pytests #8
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: Run Pytests | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "main", "develop" ] | |
pull_request: | |
branches: [ "main", "develop" ] | |
jobs: | |
build-and-run: | |
runs-on: ubuntu-latest | |
env: | |
DOCKER_BUILDKIT: 1 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build Quack Docker image | |
run: docker build . --target quack --file Dockerfile --tag quack:testing-latest | |
- name: Run pytests on Docker image | |
run: docker run quack:testing-latest pytest -x |