Merge pull request #104 from briis/dependabot/pip/tox-4.11.4 #162
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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: CI | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install poetry | |
run: pipx install poetry | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "poetry" | |
- name: Install dependencies | |
run: poetry install | |
- name: Run linting | |
run: | | |
poetry run isort . | |
poetry run black . --check | |
poetry run flake8 pyweatherflowudp tests | |
poetry run pylint pyweatherflowudp | |
poetry run pydocstyle pyweatherflowudp tests | |
- name: Run mypy | |
run: poetry run mypy pyweatherflowudp | |
- name: Test with pytest | |
run: poetry run pytest --timeout=10 --cov=pyweatherflowudp --asyncio-mode=auto |