-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (33 loc) · 857 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
41
---
name: Test
on:
pull_request: {}
push:
branches: main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies with poetry
run: |
pip install poetry
poetry install
- run: poetry run isort --recursive --diff
- run: poetry run black --check .
- run: poetry run flake8
- run: poetry run mypy
- run: poetry run pytest --cov --cov-fail-under=75
docker-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build docker image
run: docker build . -t yaml2jsonnet:test
- name: Smoke test docker image
run: |
docker run --rm yaml2jsonnet:test