Skip to content

Commit 2336694

Browse files
committed
working on build.yml
1 parent 162483d commit 2336694

File tree

1 file changed

+18
-24
lines changed

1 file changed

+18
-24
lines changed

.github/workflows/build.yml

+18-24
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,27 @@
1-
name: Build and Test
2-
3-
on:
4-
push:
5-
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
8-
1+
name: striprtf build
2+
on: [push]
93
jobs:
104
build:
115
runs-on: ubuntu-latest
126
strategy:
137
matrix:
14-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
15-
8+
python-version:
9+
- "3.8"
10+
- "3.9"
11+
- "3.10"
12+
- "3.11"
13+
- "3.12"
14+
- "3.13"
1615
steps:
1716
- uses: actions/checkout@v4
18-
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v5
17+
18+
- name: Install uv and set the python version
19+
uses: astral-sh/setup-uv@v5
2020
with:
2121
python-version: ${{ matrix.python-version }}
22-
- name: Install uv
23-
run: |
24-
curl -LsSf https://astral.sh/uv/install.sh | sh
25-
- name: Install dependencies
26-
run: |
27-
uv pip install -e ".[dev]"
28-
- name: Build with uv
29-
run: |
30-
uv build
31-
- name: Test with pytest
32-
run: |
33-
pytest
22+
23+
- name: Install the project
24+
run: uv sync --all-extras --dev
25+
26+
- name: Run tests
27+
run: uv run pytest tests

0 commit comments

Comments
 (0)