Merge branch 'dev-0.0.1a2' of https://github.com/KevinCortacero/Karte… #6
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: [ master, dev-* ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install Poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
- name: Configure Poetry | |
run: | | |
echo "poetry config virtualenvs.create false" >> $GITHUB_ENV | |
- name: Install dependencies | |
run: | | |
poetry install | |
- name: Test with pytest | |
run: | | |
poetry run pytest | |
- name: Check formatting with black | |
run: | | |
poetry run black --check . | |
- name: Run type checking with mypy | |
run: | | |
poetry run mypy my_package | |
- name: Lint with flake8 | |
run: | | |
poetry run flake8 my_package |