Skip to content

Merge pull request #248 from cj81499/dependabot/pip/pre-commit-3.4.0 #794

Merge pull request #248 from cj81499/dependabot/pip/pre-commit-3.4.0

Merge pull request #248 from cj81499/dependabot/pip/pre-commit-3.4.0 #794

name: Python Package
on:
push:
branches:
- main
pull_request:
merge_group:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- name: Checkout Repo
uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Set up Poetry
uses: snok/[email protected]
- name: Install Dependencies
run: poetry install
- name: Check types
run: poetry run mypy .
- name: Run tests
run: poetry run pytest --cov=. --cov-report=xml
# consider uploading only for one python version
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3