Skip to content

Commit

Permalink
Use the right version of Python to test wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
Legrandin committed Feb 8, 2021
1 parent e87c9aa commit 2d3d5d1
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,23 +52,36 @@ jobs:
strategy:
matrix:
os: [ubuntu-18.04, windows-latest, macos-latest]
python: ['2.7', '3.6', '3.7', '3.8', '3.9', 'pypy-2.7', 'pypy-3.6']
python-version: ['2.7', '3.6', '3.7', '3.8', '3.9', 'pypy-2.7', 'pypy-3.6']

if: github.actor == 'Legrandin'

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Display Python version
run: python -c "from __future__ import print_function; import sys; print(sys.version)"

- uses: actions/download-artifact@v2
with:
name: wheels
path: wheels/

- name: Install wheels
- name: Install pycryptodome wheel
if: endsWith(github.ref, 'x') == false
run: |
# TODO: pycryptodomex
pip install pycryptodome --no-index -f wheels/
- name: Install pycryptodomex wheel
if: endsWith(github.ref, 'x') == true
run: |
pip install pycryptodomex --no-index -f wheels/
- name: Test wheels
run: |
python -m Crypto.SelfTest --skip-slow-tests

0 comments on commit 2d3d5d1

Please sign in to comment.