Skip to content

Commit

Permalink
ci: add pip download check
Browse files Browse the repository at this point in the history
pip download resolver fails on certain combinations - currently when
trying to download macOS wheels on a Windows machine. This affects
offlinedatasci that depends on 'pip download' via
pypi_mirror.download().

Reference: carpentriesoffline#95
  • Loading branch information
abhidg committed Feb 29, 2024
1 parent 58dacfe commit 6e476fb
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/pip-download.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
on:
push:
branches: [main]
pull_request:
branches: [main]

name: pip download

jobs:
build-check:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
config:
- {os: macOS-latest}
- {os: windows-latest}
- {os: ubuntu-latest}

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.11' # Version range or exact version of a Python version to use, using SemVer's version range syntax
- name: Try pip download
run: |
mkdir test-dl
pip download -d test-dl --platform win_amd64 --only-binary=:all: notebook matplotlib numpy pandas
pip download -d test-dl --platform macosx_10_12_x86_64 --only-binary=:all: notebook matplotlib numpy pandas
pip download -d test-dl --platform manylinux_2_17_x86_64 --only-binary=:all: notebook matplotlib numpy pandas

0 comments on commit 6e476fb

Please sign in to comment.