Skip to content

add GitHub actions for testing #5

add GitHub actions for testing

add GitHub actions for testing #5

Workflow file for this run

name: Core Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8"]
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- run: poetry install --without doc
- uses: actions/cache@v3
name: Define a cache for the tools
with:
path: ./.cache
key: tools-cache
- name: Unit tests with pytest
run: poetry run pytest
- name: Typechecking with mypy
run: poetry run mypy ./zammadoo
- name: Code analysis with pylint
run: poetry run pylint ./zammadoo