Skip to content

Commit

Permalink
Update cd-post-release-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Smartappli authored Jun 30, 2024
1 parent 005fb33 commit 48c59e3
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/cd-post-release-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,29 +54,31 @@ jobs:
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
python -m pip install uv==0.2.17
uv --version
- name: Get pip cache dir
id: pip-cache
shell: bash
run: |
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
echo "dir=$(uv cache dir)" >> $GITHUB_OUTPUT
- name: Load github cache
uses: actions/cache@v4
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-py${{ matrix.python-version }}-${{ hashFiles('setup.cfg') }}
key: ${{ runner.os }}-uv-py${{ matrix.python-version }}-${{ hashFiles('setup.cfg') }}
restore-keys: |
${{ runner.os }}-pip-py${{ matrix.python-version }}-
${{ runner.os }}-uv-py${{ matrix.python-version }}-
- name: Install Syft
shell: bash
run: |
if [[ ${{inputs.release_platform}} == "REAL_PYPI" ]]; then
pip install syft==${{inputs.syft_version}}
python -m uv pip install syft==${{inputs.syft_version}}
fi
if [[ ${{ inputs.release_platform }} == "TEST_PYPI" ]]; then
pip install --extra-index-url https://test.pypi.org/simple/ syft==${{inputs.syft_version}}
python -m uv pip install --extra-index-url https://test.pypi.org/simple/ syft==${{inputs.syft_version}}
fi
- name: Check Syft version
Expand Down Expand Up @@ -119,9 +121,9 @@ jobs:
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
pip install uv==0.2.17
python -m pip install uv==0.2.17
uv --version
uv pip install tox tox-uv==1.9.0
python -m uv pip install tox tox-uv==1.9.0
- name: Get uv cache dir
id: pip-cache
Expand Down Expand Up @@ -168,7 +170,8 @@ jobs:
- name: Upgrade pip and install uv
run: |
python -m pip install --upgrade pip
pip install uv==0.2.17
python -m pip install uv==0.2.17
uv --version
- name: Get pip cache dir
id: pip-cache
Expand All @@ -189,15 +192,15 @@ jobs:
SYFT_VERSION: ${{ inputs.syft_version }}
run: |
if [[ ${{ inputs.release_platform }} == "TEST_PYPI" ]]; then
uv pip install --extra-index-url https://test.pypi.org/simple/ syft[data_science,dev]==${{ inputs.syft_version }}
python -m uv pip install --extra-index-url https://test.pypi.org/simple/ syft[data_science,dev]==${{ inputs.syft_version }}
fi
if [[ ${{ inputs.release_platform }} == "REAL_PYPI" ]]; then
uv pip install syft[data_science,dev]==${{ inputs.syft_version }}
python -m uv pip install syft[data_science,dev]==${{ inputs.syft_version }}
fi
- name: Install tox
run: |
uv pip install tox tox-uv==1.9.0 tox-current-env
python -m uv pip install tox tox-uv==1.9.0 tox-current-env
- name: Run unit tests
run: |
Expand Down

0 comments on commit 48c59e3

Please sign in to comment.