Skip to content
Open
41 changes: 41 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: check lint

on:
pull_request:
branches:
- main
push:

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- '3.10'
- '3.11'
- '3.12.4'
- '3.13'

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.8.4

- name: Disables creation of virtualenvs
run: poetry config virtualenvs.create false

- name: Install dependencies
run: poetry install

- name: run lint
run: |
make check
8 changes: 3 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- '3.10'
- '3.11'
- '3.12.4'
- '3.13'

steps:
- uses: actions/checkout@v4
Expand All @@ -25,19 +26,16 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
uses: Gr1N/setup-poetry@v8
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.8.3
poetry-version: 1.8.4

- name: Disables creation of virtualenvs
run: poetry config virtualenvs.create false

- name: Install dependencies
run: poetry install

- name: run lint
run: |
make check
- name: run tests
run: |
make test
Loading
Loading