Change to uv #59
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |