Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Test all built wheels #91

Merged
merged 2 commits into from
May 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 49 additions & 11 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,51 @@ jobs:
with:
path: dist/*.tar.gz

test_attaching_to_old_interpreters:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python_version: ["2.7", "3.6"]
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Set up dependencies
run: |
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install -qy \
gdb \
python2.7-dev python2.7-dbg \
python3.6-dev python3.6-dbg python3.6-distutils
- name: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements-test.txt
python3 -m pip install --no-index --find-links=dist/ --only-binary=pystack pystack
- name: Disable ptrace security restrictions
run: |
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
- name: Run pytest
env:
PYTHON_TEST_VERSION: ${{ matrix.python_version }}
run: python3 -m pytest tests -n auto -vvv

test_wheels:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python_version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
python_version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
Expand All @@ -73,7 +111,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "${{matrix.python_version}}"
- name: Set up dependencies
run: |
sudo add-apt-repository ppa:deadsnakes/ppa
Expand All @@ -85,16 +123,16 @@ jobs:
python${{matrix.python_version}}-distutils
- name: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements-test.txt
python3 -m pip install --find-links=dist/ --only-binary=pystack pystack
python${{matrix.python_version}} -m pip install --upgrade pip
python${{matrix.python_version}} -m pip install -r requirements-test.txt
python${{matrix.python_version}} -m pip install --no-index --find-links=dist/ --only-binary=pystack pystack
- name: Disable ptrace security restrictions
run: |
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
- name: Run pytest
env:
PYTHON_TEST_VERSION: ${{ matrix.python_version }}
run: python3 -m pytest tests -k 'not 2.7' -n auto -vvv
PYTHON_TEST_VERSION: "auto"
run: python${{matrix.python_version}} -m pytest tests -k 'not 2.7' -n auto -vvv

test_in_alpine:
needs: [build_wheels, build_sdist]
Expand All @@ -120,7 +158,7 @@ jobs:
python3 -m venv venv
venv/bin/python3 -m pip install --upgrade pip
venv/bin/python3 -m pip install -r requirements-test.txt
venv/bin/python3 -m pip install --find-links=dist/ --only-binary=pystack pystack
venv/bin/python3 -m pip install --no-index --find-links=dist/ --only-binary=pystack pystack
- name: Run pytest
env:
PYTHON_TEST_VERSION: "auto"
Expand Down Expand Up @@ -155,7 +193,7 @@ jobs:
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements-test.txt
python3 -m pip install --find-links=dist/ --only-binary=pystack pystack
python3 -m pip install --no-index --find-links=dist/ --only-binary=pystack pystack
- name: Run pytest
env:
PYTHON_TEST_VERSION: "auto"
Expand Down Expand Up @@ -191,7 +229,7 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements-test.txt
python -m pip install --find-links=dist/ --only-binary=pystack pystack
python -m pip install --no-index --find-links=dist/ --only-binary=pystack pystack
- name: Run pytest
env:
PYTHON_TEST_VERSION: "auto"
Expand Down Expand Up @@ -229,7 +267,7 @@ jobs:
python3 -m venv venv
venv/bin/python3 -m pip install --upgrade pip
venv/bin/python3 -m pip install -r requirements-test.txt
venv/bin/python3 -m pip install --find-links=dist/ --only-binary=pystack pystack
venv/bin/python3 -m pip install --no-index --find-links=dist/ --only-binary=pystack pystack
- name: Run pytest
env:
PYTHON_TEST_VERSION: "auto"
Expand Down
Loading