|
1 | 1 | name: Run Tests |
2 | 2 |
|
3 | | -on: |
4 | | - push: |
5 | | - branches: ["main"] |
6 | | - pull_request: |
7 | | - branches: ["*"] |
8 | | - |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: ["main"] |
| 6 | + pull_request: |
| 7 | + branches: ["*"] |
| 8 | + |
9 | 9 | jobs: |
10 | | - build: |
11 | | - runs-on: ${{ matrix.os }} |
12 | | - strategy: |
13 | | - max-parallel: 4 |
14 | | - fail-fast: false |
15 | | - matrix: |
16 | | - version: ['4.5', '5.0', '5.1'] |
17 | | - os: [macos-latest, windows-latest, ubuntu-latest] |
18 | | - steps: |
19 | | - - uses: actions/checkout@v4 |
| 10 | + build: |
| 11 | + runs-on: ${{ matrix.os }} |
| 12 | + strategy: |
| 13 | + max-parallel: 4 |
| 14 | + fail-fast: false |
| 15 | + matrix: |
| 16 | + version: ["4.5", "5.0"] |
| 17 | + os: [macos-latest, windows-latest, ubuntu-latest] |
| 18 | + steps: |
| 19 | + - uses: actions/checkout@v4 |
| 20 | + |
| 21 | + - name: Install the latest version of uv |
| 22 | + uses: astral-sh/setup-uv@v4 |
| 23 | + with: |
| 24 | + version: "latest" |
| 25 | + |
| 26 | + - name: Install |
| 27 | + run: | |
| 28 | + uv sync --all-extras --dev |
| 29 | + uv pip install "bpy==${{ matrix.version }}.*" --extra-index-url https://bradyajohnston.github.io/dailybpy/ --index-strategy unsafe-best-match --prerelease=allow |
| 30 | +
|
| 31 | + - name: Run tests |
| 32 | + run: | |
| 33 | + uv run -m pytest -vv --cov=databpy --cov-report=xml |
20 | 34 |
|
21 | | - - name: Install the latest version of uv |
22 | | - uses: astral-sh/setup-uv@v4 |
23 | | - with: |
24 | | - version: "latest" |
25 | | - |
26 | | - - name: Install |
27 | | - run: | |
28 | | - uv sync --all-extras --dev |
29 | | - uv pip install "bpy==${{ matrix.version }}.*" --extra-index-url https://bradyajohnston.github.io/dailybpy/ --index-strategy unsafe-best-match --prerelease=allow |
30 | | - |
31 | | - - name: Run tests |
32 | | - run: | |
33 | | - uv run -m pytest -vv --cov=databpy --cov-report=xml |
34 | | - |
35 | | - - name: Upload coverage reports to Codecov |
36 | | - uses: codecov/codecov-action@v5 |
37 | | - if: matrix.os == 'macos-latest' && matrix.version == '5.0' |
38 | | - with: |
39 | | - token: ${{ secrets.CODECOV_TOKEN }} |
40 | | - name: coverage.xml |
| 35 | + - name: Upload coverage reports to Codecov |
| 36 | + uses: codecov/codecov-action@v5 |
| 37 | + if: matrix.os == 'macos-latest' && matrix.version == '5.0' |
| 38 | + with: |
| 39 | + token: ${{ secrets.CODECOV_TOKEN }} |
| 40 | + name: coverage.xml |
41 | 41 |
|
42 | | - - name: Upload coverage reports to Codecov |
43 | | - if: matrix.os == 'macos-latest' && matrix.version == '5.0' |
44 | | - uses: codecov/codecov-action@v3 |
45 | | - |
| 42 | + - name: Upload coverage reports to Codecov |
| 43 | + if: matrix.os == 'macos-latest' && matrix.version == '5.0' |
| 44 | + uses: codecov/codecov-action@v3 |
0 commit comments