disable pip version check #49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: selftest | |
on: | |
pull_request: | |
push: | |
branches: | |
- release/* | |
env: | |
PIP_DISABLE_PIP_VERSION_CHECK: 1 | |
jobs: | |
build-and-test: | |
name: Build and test | |
uses: ./.github/workflows/build-and-test.yaml | |
with: | |
targets: | | |
defaults = dict(python='cp38', test=True) | |
targets = [] | |
targets.extend(defaults | dict(os='linux', arch=arch, test=arch != 'armv7') for arch in ('x86_64', 'aarch64', 'armv7')) | |
targets.extend(defaults | dict(os='musllinux', arch=arch) for arch in ('x86_64', 'aarch64')) | |
targets.append(defaults | dict(os='macos', arch='universal2')) | |
targets.extend(defaults | dict(os='windows', arch=arch) for arch in ('x86_64', 'i686')) | |
check: | |
name: Test distribution | |
needs: build-and-test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Download artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: dist | |
path: dist | |
- name: Install example | |
run: python -m pip install --no-index --find-links dist example | |
- name: Test example | |
shell: python | |
run: | | |
import example | |
assert example.double(2) == 4 |