Skip to content

Commit 2fd1f01

Browse files
committed
chore: Add github action workflows
1 parent b550700 commit 2fd1f01

File tree

2 files changed

+94
-0
lines changed

2 files changed

+94
-0
lines changed

.github/workflows/lint.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
2+
name: Lint
3+
4+
on:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
10+
env:
11+
POETRY_VERSION: "1.8.3"
12+
13+
jobs:
14+
check:
15+
name: Style-check ${{ matrix.python-version }}
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
# Only lint on the min and max supported Python versions.
20+
# It's extremely unlikely that there's a lint issue on any version in between
21+
# that doesn't show up on the min or max versions.
22+
#
23+
# GitHub rate-limits how many jobs can be running at any one time.
24+
# Starting new jobs is also relatively slow,
25+
# so linting on fewer versions makes CI faster.
26+
python-version:
27+
- "3.9"
28+
- "3.10"
29+
- "3.11"
30+
- "3.12"
31+
32+
steps:
33+
- uses: actions/checkout@v2
34+
- name: Set up Python ${{ matrix.python-version }}
35+
uses: actions/setup-python@v2
36+
with:
37+
python-version: ${{ matrix.python-version }}
38+
- name: Install Poetry
39+
uses: snok/install-poetry@v1
40+
with:
41+
version: ${{ env.POETRY_VERSION }}
42+
- name: Install dependencies
43+
run: |
44+
poetry install --all-extras
45+
- name: run lint
46+
run: |
47+
make lint

.github/workflows/test.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
2+
name: Lint
3+
4+
on:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
10+
env:
11+
POETRY_VERSION: "1.8.3"
12+
13+
jobs:
14+
check:
15+
name: Style-check ${{ matrix.python-version }}
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
# Only lint on the min and max supported Python versions.
20+
# It's extremely unlikely that there's a lint issue on any version in between
21+
# that doesn't show up on the min or max versions.
22+
#
23+
# GitHub rate-limits how many jobs can be running at any one time.
24+
# Starting new jobs is also relatively slow,
25+
# so linting on fewer versions makes CI faster.
26+
python-version:
27+
- "3.9"
28+
- "3.10"
29+
- "3.11"
30+
- "3.12"
31+
32+
steps:
33+
- uses: actions/checkout@v2
34+
- name: Set up Python ${{ matrix.python-version }}
35+
uses: actions/setup-python@v2
36+
with:
37+
python-version: ${{ matrix.python-version }}
38+
- name: Install Poetry
39+
uses: snok/install-poetry@v1
40+
with:
41+
version: ${{ env.POETRY_VERSION }}
42+
- name: Install dependencies
43+
run: |
44+
poetry install --all-extras
45+
- name: runt tests
46+
run: |
47+
make test

0 commit comments

Comments
 (0)