forked from F1ashhimself/electricitybot
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.09 KB
/
app.yaml
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
41
42
43
44
45
46
47
48
49
50
name: Tests
on: push
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install poetry
run: |
pip install poetry==1.2.2
- name: Install dependencies
run: |
poetry install
- name: Run tests
run: |
make test
- name: Lint Dockerfile with hadolint
uses: hadolint/hadolint-action@v2.1.0
with:
dockerfile: Dockerfile
failure-threshold: error
ignore: DL3008,SC3009,DL3013
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build Docker image
uses: docker/build-push-action@v3
with:
context: .
load: true
platforms: linux/arm64
no-cache: true
tags: f1ashhimself/electricitybot:${{ github.sha }}