style(ruff): cleaned with Ruff + some patches #281
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] | |
jobs: | |
build: | |
name: Run tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11", "3.12"] | |
steps: | |
# check-out repo and set-up python | |
- uses: szenius/set-timezone@v2.0 | |
with: | |
timezoneLinux: "Europe/Berlin" | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up python ${{ matrix.python-version }} | |
id: setup-python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# install & configure poetry | |
- name: Poetry & environment setup | |
uses: snok/install-poetry@v1.3.4 | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
- run: poetry install --no-interaction --all-extras | |
# test! | |
- name: Running PyTest on Python ${{ matrix.python-version }} | |
run: poetry run --no-interaction pytest --verbose --emoji |