Skip to content

Commit

Permalink
Migrated workflow to uv
Browse files Browse the repository at this point in the history
  • Loading branch information
clay53 committed Feb 16, 2025
1 parent 5e0dce6 commit b6ac13e
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/cdkactions_build-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,24 @@ jobs:
uses: actions/cache@v2
with:
path: ~/.local/share/virtualenvs
key: v0-${{ hashFiles('backend/Pipfile.lock') }}
key: v0-${{ hashFiles('backend/uv.lock') }}
- name: Install Dependencies
run: |-
cd backend
pip install pipenv
pipenv install --deploy --dev
uv sync
- name: Lint (flake8)
run: |-
cd backend
pipenv run flake8 .
uv run flake8 .
- name: Lint (black)
run: |-
cd backend
pipenv run black --check .
uv run black --check .
- name: Test (run in parallel)
run: |-
cd backend
pipenv run python -m coverage run --concurrency=multiprocessing manage.py test --settings=Platform.settings.ci --parallel
pipenv run python -m coverage combine
uv run python -m coverage run --concurrency=multiprocessing manage.py test --settings=Platform.settings.ci --parallel
uv run python -m coverage combine
container:
image: python:3.10-buster
env:
Expand Down

0 comments on commit b6ac13e

Please sign in to comment.