Skip to content

Execute automated tests #64

Execute automated tests

Execute automated tests #64

Workflow file for this run

---
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