Skip to content

[main][560461](UserStory) add github workflow #1

[main][560461](UserStory) add github workflow

[main][560461](UserStory) add github workflow #1

Workflow file for this run

name: pre-commit
on:
pull_request:
push:
defaults:
run:
working-directory: ./flixpy
jobs:
ruff-format:
name: ruff check
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
cache: 'poetry'
- run: poetry install
- run: poetry run ruff format --check
ruff-check:
name: ruff check
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
cache: 'poetry'
- run: poetry install
- run: poetry run ruff check