-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (38 loc) · 942 Bytes
/
ci.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
41
42
43
44
45
46
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
PYTHON_VERSION: 3.8
HADOLINT_VERSION: "v1.16.3"
VIRTUALENV_PIP: "20.2"
jobs:
tox:
name: Tox
runs-on: ubuntu-latest
steps:
- name: Check out code from GitHub
uses: actions/checkout@v2.3.4
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v2.2.2
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install tox
run: python3 -m pip install tox
- name: Run tox
run: tox
hadolint:
name: Hadolint
runs-on: ubuntu-latest
steps:
- name: Check out code from GitHub
uses: actions/checkout@v2.3.4
- name: Run Hadolint
run: |
docker run --rm -i \
-v $(pwd)/.hadolint.yaml:/.hadolint.yaml:ro \
hadolint/hadolint:${{ env.HADOLINT_VERSION }} < Dockerfile