Skip to content
Open
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
31 changes: 16 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,24 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-in-project: true
- name: Install uv
uses: astral-sh/setup-uv@v7

- name: Initialize environment
run: |
poetry install --no-root
poetry add django@~${{ matrix.django-version }}
uv sync --extra dev
uv add django~=${{ matrix.django-version }}

- name: Run pre-test checks
run: |
sudo apt-get install gettext
poetry run python ./code_check.py --debug
uv run python ./code_check.py --debug

- name: Run tests
run: |
poetry run coverage run manage.py test dash test_runner --verbosity=2
poetry run coverage report -i
poetry run coverage xml
uv run coverage run manage.py test dash test_runner --verbosity=2
uv run coverage report -i
uv run coverage xml

- name: Upload coverage
if: success()
Expand All @@ -73,11 +71,14 @@ jobs:
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: "3.10.x"
python-version: "3.11.x"

- name: Install uv
uses: astral-sh/setup-uv@v7

- name: Publish release
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
python -m pip install -U pip poetry
poetry build
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry publish
uv build
uv publish
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,5 @@ fabfile.*
# ruff
.ruff_cache

# uv
.venv/
Loading