Add new target #67
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 --with dev --no-root | |
- name: Run formatter, linter and type checker | |
run: | | |
cd training && poetry run ruff check . | |
# mypy --explicit-package-bases . | |
# flake8 . | |
# interrogate -vv --ignore-init-module --exclude sigma_api . | |
- name: Run tests | |
run: cd training && poetry 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 |