Skip to content

Upgrade Python to v3.12 #56

Upgrade Python to v3.12

Upgrade Python to v3.12 #56

Workflow file for this run

name: Test
on:
push:
branches:
- main
tags:
- v*
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.12
- name: Install dependencies
run: |
pip install poetry
cd training && poetry install
- name: Run formatter, linter and type checker
run: |
black --check .
# mypy --explicit-package-bases .
# flake8 .
# interrogate -vv --ignore-init-module --exclude sigma_api .
- name: Run tests
run: pytest --cov=training --cov-report term --cov-report lcov:coverage.lcov -vv
# - name: Submit coverage report to Coveralls
# if: ${{ success() }}
# uses: coverallsapp/[email protected]
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# path-to-lcov: ./coverage.lcov