Skip to content

Merge pull request #26 from Tsadoq/fix/komoot-api-compatibility #62

Merge pull request #26 from Tsadoq/fix/komoot-api-compatibility

Merge pull request #26 from Tsadoq/fix/komoot-api-compatibility #62

name: Kompy
on:
pull_request:
branches:
- main
push:
branches:
- main
permissions:
contents: write
actions: write
jobs:
build:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install flake8 coverage
sudo apt update
- name: Lint with flake8
run: |
flake8 . --count --max-complexity=25 --max-line-length=120 --statistics
- name: Run Tests
run: |
python -m unittest
- name: Run Coverage with coverage.py
run: |
coverage run -m unittest
coverage report -m