Skip to content

Commit

Permalink
made sure to use [uv](https://astral.sh/blog/uv) in CI for hopefull…
Browse files Browse the repository at this point in the history
…y faster python installations
  • Loading branch information
CommanderStorm committed Apr 28, 2024
1 parent 11a187c commit d45afba
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 19 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/data-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,25 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: setup uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r data/requirements.txt
run: uv pip install -r data/requirements.txt
- run: pytest data
#type-check:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
#- name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v4
# uses: actions/setup-python@v5
# with:
# python-version: "3.10"
# - name: setup uv
# run: curl -LsSf https://astral.sh/uv/install.sh | sh
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r data/requirements.txt -r requirements-dev.txt -r server/main-api/test/requirements.txt
# run: uv pip install -r data/requirements.txt -r requirements-dev.txt
# - name: Run mypy
# run: |
# mypy --strict data
# run: mypy --strict data
data-build:
needs:
- data-test
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path: 'requirements*.txt'
- name: setup uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install -r data/requirements.txt -r requirements-dev.txt -r server/main-api/test/requirements.txt
run: 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
8 changes: 3 additions & 5 deletions .github/workflows/update-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path: 'requirements*.txt'
- name: setup uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install -r data/requirements.txt -r requirements-dev.txt -r server/main-api/test/requirements.txt
run: 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 d45afba

Please sign in to comment.