-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 841 Bytes
/
Copy pathtest.yml
File metadata and controls
34 lines (30 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Test Project
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
env:
PYTHON_VERSION: "3.11"
UV_VERSION: "0.5"
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install UV
run: |
pip install uv==${{ env.UV_VERSION }}
uv sync --extra ray --dev
- name: Run Tests
run: uv run poe test-ci
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}