-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (33 loc) · 1.03 KB
/
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
tags: "*"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: "3.10"
- name: Install dependencies with pipenv
run: |
pip install pipenv
pipenv install --deploy --dev
- run: pipenv run isort --recursive --diff .
- run: pipenv run black --check .
- run: pipenv run flake8
# - run: pipenv run mypy
- run: pipenv run pytest --cov --cov-fail-under=0
docker-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build docker image
run: docker build . -t nozomi_cb_bot:test
- name: Smoke test docker image
run: |
docker run --rm nozomi_cb_bot:test 10