Skip to content

CI refs/heads/wartung/KIT-3396 #12

CI refs/heads/wartung/KIT-3396

CI refs/heads/wartung/KIT-3396 #12

Workflow file for this run

name: ci
run-name: CI ${{ github.ref }}
on:
push:
branches:
- "**"
paths-ignore:
- README.md
- LICENSE.txt
- .gitignore
- .vscode/**
- .devcontainer/**
jobs:
build_python:
name: Python | build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Add linting matchers
run: |
echo "::add-matcher::.github/flake8-error-problem-matcher.json"
echo "::add-matcher::.github/flake8-warning-problem-matcher.json"
echo "::add-matcher::.github/mypy-error-problem-matcher.json"
- name: Lint
uses: py-actions/flake8@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Lint typing
# Must run with installed dependencies
run: |
mypy --config-file .mypy.ini --show-column-numbers .
- name: Run tests
run: python -m pytest --cov=sag_py_web_common --cov-report=xml tests
- name: Prepare coverage file
run: coverage-lcov
- name: Coveralls upload
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: lcov.info