diff --git a/.github/workflows/data-cicd.yml b/.github/workflows/data-cicd.yml index 98ab934bb..9503afc30 100644 --- a/.github/workflows/data-cicd.yml +++ b/.github/workflows/data-cicd.yml @@ -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 diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 3eb006305..81fc0aa7e 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -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/action@v3.0.1 diff --git a/.github/workflows/update-data.yml b/.github/workflows/update-data.yml index ded4ed742..eb71b423d 100644 --- a/.github/workflows/update-data.yml +++ b/.github/workflows/update-data.yml @@ -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: |