-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (34 loc) · 929 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
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