Merge pull request #248 from cj81499/dependabot/pip/pre-commit-3.4.0 #794
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: 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 |