|
1 | | -name: PyProx |
| 1 | +name: PyProximal-testing |
2 | 2 |
|
3 | | -on: [push, pull_request] |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + types: [opened, synchronize, reopened] |
| 6 | + push: |
| 7 | + branches: |
| 8 | + - main |
| 9 | + - dev |
4 | 10 |
|
5 | 11 | jobs: |
6 | 12 | build: |
7 | 13 | strategy: |
8 | 14 | matrix: |
9 | 15 | platform: [ ubuntu-latest, macos-latest ] |
10 | | - python-version: ["3.10", "3.11", "3.12"] |
| 16 | + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] |
11 | 17 |
|
12 | 18 | runs-on: ${{ matrix.platform }} |
13 | 19 | steps: |
14 | | - - uses: actions/checkout@v4 |
15 | | - - name: Get history and tags for SCM versioning to work |
16 | | - run: | |
17 | | - git fetch --prune --unshallow |
18 | | - git fetch --depth=1 origin +refs/tags/*:refs/tags/* |
19 | | - - name: Set up Python ${{ matrix.python-version }} |
20 | | - uses: actions/setup-python@v5 |
21 | | - with: |
22 | | - python-version: ${{ matrix.python-version }} |
23 | | - - name: Install dependencies |
24 | | - run: | |
25 | | - python -m pip install --upgrade pip setuptools |
26 | | - pip install flake8 pytest |
27 | | - if [ -f requirements.txt ]; then pip install -r requirements-dev.txt; fi |
28 | | - - name: Install pyproximal |
29 | | - run: | |
30 | | - python -m setuptools_scm |
31 | | - pip install . |
32 | | - - name: Test with pytest |
33 | | - run: | |
34 | | - pytest |
| 20 | + - uses: actions/checkout@v4 |
| 21 | + - name: Get history and tags for SCM versioning to work |
| 22 | + run: | |
| 23 | + git fetch --prune --unshallow |
| 24 | + git fetch --depth=1 origin +refs/tags/*:refs/tags/* |
| 25 | + - name: Install uv with Python ${{ matrix.python-version }} |
| 26 | + uses: astral-sh/setup-uv@v6 |
| 27 | + with: |
| 28 | + python-version: ${{ matrix.python-version }} |
| 29 | + - name: Install dependencies and pyproximal |
| 30 | + run: uv sync --locked --all-extras --all-groups |
| 31 | + - name: Test with pytest |
| 32 | + run: uv run pytest --color=yes pytests/ |
0 commit comments