Merge pull request #115 from bretterer/dependabot/pip/dbus-fast-2.24.4 #304
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: Run Python Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Setup Poetry | |
uses: abatilo/actions-poetry@v2 | |
- name: Install dependencies | |
run: | | |
poetry install | |
- name: Run linting | |
run: | | |
poetry run ruff check . | |
poetry run ruff format . --check | |
- name: Run mypy | |
run: poetry run mypy src/rivian | |
- name: Run tests with poetry and pytest | |
run: poetry run pytest |