|
1 | 1 | on: ['push', 'pull_request'] |
2 | 2 | jobs: |
3 | | - # Removed macos tests because github actions doesn't support python 3.7 anymore |
4 | | - # osx_mdp_tests: |
5 | | - # runs-on: macos-latest |
6 | | - # steps: |
7 | | - # - uses: actions/checkout@v3 |
8 | | - # - name: Set up Python 3.7 |
9 | | - # uses: actions/setup-python@v4 |
10 | | - # with: |
11 | | - # python-version: '3.7' |
12 | | - # architecture: 'x64' |
13 | | - # - name: Install dependencies |
14 | | - # run: python -m pip install --upgrade pip |
15 | | - # - name: Setup |
16 | | - # run: pip install -e .[harl] |
17 | | - # - name: Run tests |
18 | | - # run: | |
19 | | - # python -m unittest discover -s testing/ -p "*_test.py" |
20 | 3 | ubuntu_mdp_tests: |
21 | 4 | runs-on: ubuntu-latest |
22 | 5 | steps: |
23 | 6 | - uses: actions/checkout@v3 |
24 | | - - name: Set up Python 3.8 |
| 7 | + - name: Set up Python 3.10.16 |
25 | 8 | uses: actions/setup-python@v4 |
26 | 9 | with: |
27 | | - python-version: 3.8 |
| 10 | + python-version: 3.10.16 |
28 | 11 | architecture: 'x64' |
29 | | - - name: Install dependencies |
| 12 | + - name: Install uv |
30 | 13 | run: | |
31 | | - python -m pip install --upgrade pip |
32 | | - pip install coverage |
| 14 | + curl -LsSf https://astral.sh/uv/install.sh | sh |
| 15 | + - name: Setup virtual environment and install dependencies |
| 16 | + run: | |
| 17 | + uv venv |
| 18 | + source .venv/bin/activate |
| 19 | + uv pip install coverage |
33 | 20 | - name: Setup # needs -e flag for coverage tests to work |
34 | | - run: pip install -e .[harl] |
| 21 | + run: | |
| 22 | + source .venv/bin/activate |
| 23 | + uv pip install -e . |
35 | 24 | - name: Run tests and generate coverage report |
36 | 25 | run: | |
| 26 | + source .venv/bin/activate |
37 | 27 | coverage run -m unittest discover -s testing/ -p "*_test.py" |
38 | 28 | - name: Upload coverage to Codecov |
39 | 29 | uses: codecov/codecov-action@v1 |
|
0 commit comments