-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (36 loc) · 1.03 KB
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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: |
poetry run ruff check .
# mypy --explicit-package-bases .
# flake8 .
# interrogate -vv --ignore-init-module --exclude sigma_api .
- name: Run tests
run: 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