Skip to content

Commit 8f3aa83

Browse files
committed
feat(lint): add GitHub Actions workflow for linting on pull requests and pushes to main
chore(test): remove linting step from test workflow to streamline CI process
1 parent eb38788 commit 8f3aa83

File tree

2 files changed

+41
-3
lines changed

2 files changed

+41
-3
lines changed

.github/workflows/lint.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: check lint
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version:
16+
- '3.10'
17+
- '3.11'
18+
- '3.12.4'
19+
- '3.13'
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v5
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
28+
- name: Install Poetry
29+
uses: abatilo/actions-poetry@v2
30+
with:
31+
poetry-version: 1.8.4
32+
33+
- name: Disables creation of virtualenvs
34+
run: poetry config virtualenvs.create false
35+
36+
- name: Install dependencies
37+
run: poetry install
38+
39+
- name: run lint
40+
run: |
41+
make check

.github/workflows/test.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ jobs:
3636
- name: Install dependencies
3737
run: poetry install
3838

39-
- name: run lint
40-
run: |
41-
make check
4239
- name: run tests
4340
run: |
4441
make test

0 commit comments

Comments
 (0)