Skip to content

Commit

Permalink
made shure that uv creates a venv first
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Apr 28, 2024
1 parent d45afba commit a6552d0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/data-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ jobs:
- name: setup uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install dependencies
run: uv pip install -r data/requirements.txt
run: |
uv venv
uv pip install -r data/requirements.txt
- run: pytest data
#type-check:
# runs-on: ubuntu-latest
Expand All @@ -36,7 +38,9 @@ jobs:
# - name: setup uv
# run: curl -LsSf https://astral.sh/uv/install.sh | sh
# - name: Install dependencies
# run: uv pip install -r data/requirements.txt -r requirements-dev.txt
# run: |
# uv venv
# uv pip install -r data/requirements.txt -r requirements-dev.txt
# - name: Run mypy
# run: mypy --strict data
data-build:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ jobs:
- name: setup uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install python dependencies
run: uv pip install -r data/requirements.txt -r requirements-dev.txt -r server/main-api/test/requirements.txt
run: |
uv venv
uv pip install -r data/requirements.txt -r requirements-dev.txt -r server/main-api/test/requirements.txt
- name: Run pre-commit
continue-on-error: ${{ github.ref == 'refs/heads/main' }}
uses: pre-commit/[email protected]
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/update-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ jobs:
- name: setup uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install python dependencies
run: uv pip install -r data/requirements.txt -r requirements-dev.txt
run: |
uv venv
uv pip install -r data/requirements.txt -r requirements-dev.txt
- name: Download data
continue-on-error: true # a PR deleting all data will be created if this fails => fail obvious
run: |
Expand Down

0 comments on commit a6552d0

Please sign in to comment.