Skip to content

Commit ea698c5

Browse files
committed
update ci
1 parent e2b5ced commit ea698c5

File tree

1 file changed

+15
-21
lines changed

1 file changed

+15
-21
lines changed

.github/workflows/python-package.yml

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,28 @@ name: Python package
55

66
on:
77
push:
8-
branches: [ "master" ]
8+
branches: ["main"]
99
pull_request:
10-
branches: [ "master" ]
10+
branches: ["main"]
1111

1212
jobs:
1313
build:
14-
1514
runs-on: ubuntu-latest
1615
strategy:
1716
fail-fast: false
1817
matrix:
19-
python-version: ["3.8", "3.9", "3.10"]
18+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
2019

2120
steps:
22-
- uses: actions/checkout@v3
23-
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v3
25-
with:
26-
python-version: ${{ matrix.python-version }}
27-
- uses: Gr1N/setup-poetry@v8
28-
- uses: actions/cache@v2
29-
with:
30-
path: ~/.cache/pypoetry/virtualenvs
31-
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
32-
- run: poetry --version
33-
- name: Install dependencies
34-
run: poetry install
35-
- name: Test with pytest
36-
run: |
37-
poetry run pytest
38-
21+
- uses: actions/checkout@v4
22+
23+
- name: Install the latest version of uv
24+
uses: astral-sh/setup-uv@v3
25+
with:
26+
enable-cache: true
27+
28+
- name: Set up Python
29+
run: uv python install ${{ matrix.python-version }}
30+
31+
- name: Test with pytest
32+
run: uv run --frozen pytest

0 commit comments

Comments
 (0)