Files
snikket-web-portal/.github/workflows/main.yaml
Jonas Schäfer d5a46b69a6 Include flake8-print plugin
This alerts us of stray print statements, which should never occur
because this is a non-TUI application.
2022-01-15 17:07:16 +01:00

61 lines
1.2 KiB
YAML

name: Tests
on:
push:
branches:
- master
- "release/*"
pull_request:
branches:
- master
- "release/*"
workflow_dispatch:
jobs:
mypy:
runs-on: ubuntu-latest
name: 'typecheck: mypy'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install
run: |
set -euo pipefail
pip install mypy
pip install -r requirements.txt
pip install -r build-requirements.txt
- name: Typecheck
run: |
python -m mypy --config mypy.ini -p snikket_web
linting:
runs-on: ubuntu-latest
name: 'lint: flake8'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install
run: |
set -euo pipefail
pip install flake8 flake8-print
- name: Linting
run: |
python -m flake8 snikket_web
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: >-
docker build .