Skip to content

Commit

Permalink
🧪 Install pre-built wheels for testing @ CI
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Nov 20, 2023
1 parent 15be584 commit 9daf17d
Showing 1 changed file with 26 additions and 9 deletions.
35 changes: 26 additions & 9 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ jobs:
source-tarball-name: ${{ needs.pre-setup.outputs.sdist-name }}
workflow-artifact-name: >-
${{ needs.pre-setup.outputs.dists-artifact-name }}
- name: Delete the `yarl/` directory to prevent accidental imports
run: rm -rfv yarl
- name: Download distributions
uses: actions/download-artifact@v3
with:
name: ${{ needs.pre-setup.outputs.dists-artifact-name }}
path: dist

- name: Setup Python ${{ matrix.pyver }}
uses: actions/setup-python@v4
Expand All @@ -142,16 +149,26 @@ jobs:
uses: py-actions/py-dependency-install@v4
with:
path: requirements/test.txt
- name: Determine pre-compiled compatible wheel
id: wheel-file
run: >
echo -n path= | tee -a "${GITHUB_OUTPUT}"
python -Im
pip install
--find-links=./dist
--no-index yarl
--force-reinstall
--no-deps
--only-binary=:all:
--dry-run
--report=-
--quiet
| jq --raw-output .install[].download_info.url
| tee -a "${GITHUB_OUTPUT}"
- name: Self-install
env:
PIP_CONSTRAINT: requirements/cython.txt
run: >-
python -Im pip install -e .
--config-settings=--pure-python=${{
matrix.no-extensions != ''
&& 'true'
|| 'false'
}}
run: python -Im pip install '${{ steps.wheel-file.outputs.path }}'
- name: Run unittests
env:
COLOR: 'yes'
Expand Down

0 comments on commit 9daf17d

Please sign in to comment.