Skip to content

Commit

Permalink
Use deaksnakes to test on multiple debug versions of CPython
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-s committed Nov 4, 2021
1 parent 86602c4 commit 07275cb
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,30 +58,30 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.9', '3.8', '3.7']

steps:
- uses: actions/checkout@v2

- name: Install Python
run: sudo apt install python3-dbg python3-dev python3-setuptools
- name: Set up Python from deadsnakes
uses: deadsnakes/[email protected]
with:
python-version: ${{ matrix.python-version }}
debug: true

- name: Check Python debug build
run: python3-dbg -c "import sys; print(hasattr(sys, 'gettotalrefcount'))"

- name: Check Python version
run: python3-dbg --version
run: python -c "import sys; print(hasattr(sys, 'gettotalrefcount'))"

- name: Install/Upgrade Python dependencies
run: python3 -m pip install --upgrade pip wheel
run: python -m pip install --upgrade pip wheel

- name: Build
run: python3-dbg -m pip install .
run: python -m pip install .

- name: Run tests
run: |
python3 -m pip install pytest pytest-xdist
python3-dbg -m pytest -n auto test/
python -m pip install pytest pytest-xdist
python -m pytest -n auto test/
poc_tests:
name: Proof of concept tests
Expand Down

0 comments on commit 07275cb

Please sign in to comment.