Skip to content

Commit bb89cd5

Browse files
DhavalGojiyacunla
andauthored
feat: Update project uv.lock dependencies and enhance CI matrix lock workflow (#332)
Co-authored-by: Daniel M <cunla@users.noreply.github.com>
1 parent 5b0e4bf commit bb89cd5

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,22 +89,23 @@ jobs:
8989
- uses: actions/checkout@v5
9090
with:
9191
persist-credentials: false
92+
9293
- name: Install uv
9394
uses: astral-sh/setup-uv@v6
95+
9496
- uses: actions/setup-python@v6
9597
with:
9698
cache-dependency-path: uv.lock
9799
python-version: "${{ matrix.python-version }}"
98100
allow-prereleases: true
99101

100-
- name: Install Django version
102+
- name: Install dependencies
101103
shell: bash
102104
run: |
103105
if [ ${{ matrix.broker == 'valkey' }} == true ]; then
104106
additional_args="--extra valkey"
105107
fi
106108
uv sync --extra yaml $additional_args
107-
uv pip install django==${{ matrix.django-version }}
108109
109110
- name: Get version
110111
id: getVersion
@@ -114,21 +115,22 @@ jobs:
114115
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
115116
116117
- name: Check for missing migrations
117-
run: |
118-
cd testproject
119-
uv run python manage.py makemigrations --check
118+
env:
119+
UV_WORKING_DIR: testproject/
120+
run: uv run --with django==${{ matrix.django-version }} -- python manage.py makemigrations --check
120121

121122
- name: Run Tests without coverage
123+
env:
124+
UV_WORKING_DIR: testproject/
122125
if: ${{ matrix.coverage != 'yes' }}
123126
run: |
124-
cd testproject
125127
export FAKEREDIS=${{ matrix.broker == 'fakeredis' }}
126128
if [ ${{ matrix.broker == 'valkey' }} == true ]; then
127129
export BROKER_PORT=6380
128130
else
129131
export BROKER_PORT=6379
130132
fi
131-
uv run python manage.py test --exclude-tag multiprocess scheduler
133+
uv run --with django==${{ matrix.django-version }} -- python manage.py test --exclude-tag multiprocess scheduler
132134
133135
# Steps for coverage check
134136
- name: Run tests with coverage

0 commit comments

Comments
 (0)