Execute automated tests #64
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: Execute automated tests | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '12 11 9 * *' | |
jobs: | |
pytest: | |
runs-on: ubuntu-latest | |
env: | |
PIP_CACHE_DIR: cache | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/cache@v1 | |
with: | |
path: cache | |
key: increment to drop caches -- v01 | |
- name: Install required system packages | |
run: sudo apt update; sudo apt -y install python3-venv | |
- run: make test | |
build: | |
needs: pytest | |
runs-on: ubuntu-latest | |
env: | |
DOCKER_REGISTRY_PASSWD: ${{ secrets.DOCKER_REGISTRY_PASSWD }} | |
steps: | |
- uses: actions/checkout@v1 | |
- run: | | |
echo $DOCKER_REGISTRY_PASSWD | docker login -u potyarkin --password-stdin | |
docker build --pull --tag potyarkin/cirrus-run:latest . | |
- if: github.ref == 'refs/heads/master' | |
run: | | |
docker push potyarkin/cirrus-run:latest |