Install all deps and run with no root #58
This file contains hidden or 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: | | |
ruff check training | |
# 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/github-action@1.1.3 | |
# with: | |
# github-token: ${{ secrets.GITHUB_TOKEN }} | |
# path-to-lcov: ./coverage.lcov |