Skip to content

Commit d0976ce

Browse files
committed
update workflow
1 parent f324a30 commit d0976ce

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+
name: Unit test, format and lint check
5+
6+
on:
7+
workflow_dispatch:
8+
push:
9+
branches: [ "git-workflow" ]
10+
pull_request:
11+
branches: [ "main" ]
12+
13+
jobs:
14+
test:
15+
16+
runs-on: ubuntu-latest
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
python-version: ["3.9", "3.10", "3.11", "3.12"]
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: Set up Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@v3
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
python -m pip install uv
32+
uv venv
33+
make dev
34+
- name: Format and Lint
35+
run: |
36+
make check
37+
- name: Test with pytest
38+
run: |
39+
make test

0 commit comments

Comments
 (0)