Pytest #67
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: Pytest | |
on: | |
workflow_run: | |
workflows: ["Docker build and push"] | |
types: | |
- completed | |
jobs: | |
pull_and_test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Pull Docker image | |
run: | | |
docker pull nickswainston/meerpipe:latest | |
env: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Run tests inside Docker container | |
run: | | |
docker run -v $PWD:/app nickswainston/meerpipe:latest /bin/bash -c "pip install pytest; pytest" | |
env: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} |