-
-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (46 loc) · 1.3 KB
/
run_tests.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
name: Test Code Changes
on:
pull_request:
branches:
- main
jobs:
test-django:
name: Python Test Suite
strategy:
matrix:
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
D3PLOY_DEBUG: yes
D3PLOY_TEST_BUCKET: d3ploy-tests-${{ matrix.python-version }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Install Python dependencies
run: |
uv sync
- name: Run ruff tests
run: uv run ruff check d3ploy
- name: Run Python Unit Tests
run: |
uv run coverage erase
uv run coverage run --source='d3ploy' tests/test.py "$@"
uv run coverage html
uv run coverage report --fail-under=100 --skip-covered
- name: Store Python coverage results
uses: actions/upload-artifact@v4
with:
name: python-coverage
path: htmlcov