Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/actions/test-coverage/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ runs:
shell: bash
run: |
cd testproject
poetry run coverage run manage.py test --exclude-tag multiprocess scheduler
uv run coverage run manage.py test --exclude-tag multiprocess scheduler
- name: Coverage report
id: coverage_report
shell: bash
run: |
mv testproject/.coverage .
echo 'REPORT<<EOF' >> $GITHUB_ENV
poetry run coverage report >> $GITHUB_ENV
uv run coverage report >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- name: json report
id: json-report
shell: bash
run: |
poetry run coverage json
uv run coverage json
echo "COVERAGE=$(jq '.totals.percent_covered_display|tonumber' coverage.json)" >> $GITHUB_ENV
- uses: mshick/add-pr-comment@v2
if: ${{ github.event_name == 'pull_request' }}
Expand Down
35 changes: 16 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: "Setup Python, Poetry and Dependencies"
uses: dsoftwareinc/setup-python-poetry-action@v1
- name: Install uv
uses: astral-sh/setup-uv@v6
- uses: actions/setup-python@v5
with:
python-version: "3.12"
poetry-version: "2.1.1"

cache-dependency-path: uv.lock
python-version: "3.13"
- name: Run ruff
shell: bash
run: |
poetry run ruff check
uv run ruff check

test-regular:
needs: [ 'ruff' ]
Expand Down Expand Up @@ -69,36 +69,33 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: "Setup Python, Poetry and Dependencies"
uses: dsoftwareinc/setup-python-poetry-action@v1
- name: Install uv
uses: astral-sh/setup-uv@v6
- uses: actions/setup-python@v5
with:
cache-dependency-path: uv.lock
python-version: "${{ matrix.python-version }}"
poetry-version: "2.1.1"
poetry-install-additional-args: "-E yaml"

- name: Install django version
shell: bash
run: |
python -m pip --quiet install poetry
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
if [ ${{ matrix.broker == 'valkey' }} == true ]; then
additional_args="-E valkey"
additional_args="--extra valkey"
fi
poetry install -E yaml $additional_args
poetry run pip install django==${{ matrix.django-version }}
uv sync --extra yaml $additional_args
uv pip install django==${{ matrix.django-version }}

- name: Get version
id: getVersion
shell: bash
run: |
VERSION=$(poetry version -s --no-ansi -n)
VERSION=$(uv version --short)
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT

- name: Check for missing migrations
run: |
cd testproject
poetry run python manage.py makemigrations --check
uv run python manage.py makemigrations --check

- name: Run Tests without coverage
if: ${{ matrix.coverage != 'yes' }}
Expand All @@ -110,7 +107,7 @@ jobs:
else
export BROKER_PORT=6379
fi
poetry run python manage.py test --exclude-tag multiprocess scheduler
uv run python manage.py test --exclude-tag multiprocess scheduler

# Steps for coverage check
- name: Run tests with coverage
Expand Down
1 change: 1 addition & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
### 🧰 Maintenance

- Update dependencies to latest versions
- Migrate to use `uv` instead of `poetry` for package management

## v4.0.0 🌈

Expand Down
Loading
Loading