aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-01-21 22:26:22 -0500
committerJason R. Coombs <jaraco@jaraco.com>2020-01-21 22:29:32 -0500
commitb2845edf4b23ee240a00fe28bd37ab359678d1ae (patch)
tree138afb8865ffe212d4fd8c7645a5b6936e6c99fb
parent620bd62c00985b551dde326619a6c895d7c80e63 (diff)
parent73376585065bbf28395c71fe15137c19a712d4f3 (diff)
downloadexternal_python_setuptools-b2845edf4b23ee240a00fe28bd37ab359678d1ae.tar.gz
external_python_setuptools-b2845edf4b23ee240a00fe28bd37ab359678d1ae.tar.bz2
external_python_setuptools-b2845edf4b23ee240a00fe28bd37ab359678d1ae.zip
Merge remote-tracking branch 'origin/master' into feature/deps-in-metadata
-rw-r--r--.github/workflows/python-tests.yml65
1 files changed, 48 insertions, 17 deletions
diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml
index 8941b359..60765b52 100644
--- a/.github/workflows/python-tests.yml
+++ b/.github/workflows/python-tests.yml
@@ -1,4 +1,6 @@
-name: Test suite
+name: >-
+ 👷
+ Test suite
on:
push:
@@ -8,31 +10,55 @@ on:
jobs:
tests:
- name: 👷
+ name: >-
+ ${{ matrix.python-version }}
+ /
+ ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
# max-parallel: 5
matrix:
python-version:
- 3.8
+ - pypy3
- 3.7
- 3.6
- 3.5
os:
- - ubuntu-18.04
+ - ubuntu-latest
- ubuntu-16.04
- macOS-latest
# - windows-2019
# - windows-2016
- env:
- - TOXENV: python
+
+ env:
+ NETWORK_REQUIRED: 1
+ TOX_PARALLEL_NO_SPINNER: 1
+ TOXENV: python
steps:
- uses: actions/checkout@master
- name: Set up Python ${{ matrix.python-version }}
- uses: actions/setup-python@v1
+ uses: actions/setup-python@v1.1.1
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Log Python version
+ run: >-
+ python --version
+ - name: Log Python location
+ run: >-
+ which python
+ - name: Log Python env
+ run: >-
+ python -m sysconfig
+ - name: Pip cache
+ uses: actions/cache@v1
with:
- version: ${{ matrix.python-version }}
+ path: ~/.cache/pip
+ key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }}-${{ hashFiles('setup.cfg') }}-${{ hashFiles('tox.ini') }}
+ restore-keys: |
+ ${{ runner.os }}-pip-
+ ${{ runner.os }}-
- name: Upgrade pip/setuptools/wheel
run: >-
python
@@ -46,10 +72,13 @@ jobs:
- name: Log installed dists
run: >-
python -m pip freeze --all
+ - name: Adjust TOXENV for PyPy
+ if: startsWith(matrix.python-version, 'pypy')
+ run: >-
+ echo "::set-env name=TOXENV::${{ matrix.python-version }}"
- name: Log env vars
run: >-
env
- env: ${{ matrix.env }}
- name: Verify that there's no cached Python modules in sources
if: >-
@@ -58,14 +87,16 @@ jobs:
! grep pyc setuptools.egg-info/SOURCES.txt
- name: 'Initialize tox envs: ${{ matrix.env.TOXENV }}'
- run: |
- python -m tox --parallel auto --notest --skip-missing-interpreters false
- env: ${{ matrix.env }}
+ run: >-
+ python -m
+ tox
+ --parallel auto
+ --notest
+ --skip-missing-interpreters false
- name: Test with tox
- run: |
- ${{ startsWith(matrix.os, 'windows-') && 'setx NETWORK_REQUIRED ' || 'export NETWORK_REQUIRED=' }}1
- python -m tox \
- --parallel 0 \
- -- \
+ run: >-
+ python -m
+ tox
+ --parallel auto
+ --
--cov
- env: ${{ matrix.env }}