Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
b2845edf
Commit
b2845edf
authored
Jan 21, 2020
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master' into feature/deps-in-metadata
parents
620bd62c
73376585
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
17 deletions
+48
-17
.github/workflows/python-tests.yml
.github/workflows/python-tests.yml
+48
-17
No files found.
.github/workflows/python-tests.yml
View file @
b2845edf
name
:
Test suite
name
:
>-
👷
Test suite
on
:
on
:
push
:
push
:
...
@@ -8,31 +10,55 @@ on:
...
@@ -8,31 +10,55 @@ on:
jobs
:
jobs
:
tests
:
tests
:
name
:
👷
name
:
>-
${{ matrix.python-version }}
/
${{ matrix.os }}
runs-on
:
${{ matrix.os }}
runs-on
:
${{ matrix.os }}
strategy
:
strategy
:
# max-parallel: 5
# max-parallel: 5
matrix
:
matrix
:
python-version
:
python-version
:
-
3.8
-
3.8
-
pypy3
-
3.7
-
3.7
-
3.6
-
3.6
-
3.5
-
3.5
os
:
os
:
-
ubuntu-
18.04
-
ubuntu-
latest
-
ubuntu-16.04
-
ubuntu-16.04
-
macOS-latest
-
macOS-latest
# - windows-2019
# - windows-2019
# - windows-2016
# - windows-2016
env
:
-
TOXENV
:
python
env
:
NETWORK_REQUIRED
:
1
TOX_PARALLEL_NO_SPINNER
:
1
TOXENV
:
python
steps
:
steps
:
-
uses
:
actions/checkout@master
-
uses
:
actions/checkout@master
-
name
:
Set up Python ${{ matrix.python-version }}
-
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
:
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
-
name
:
Upgrade pip/setuptools/wheel
run
:
>-
run
:
>-
python
python
...
@@ -46,10 +72,13 @@ jobs:
...
@@ -46,10 +72,13 @@ jobs:
-
name
:
Log installed dists
-
name
:
Log installed dists
run
:
>-
run
:
>-
python -m pip freeze --all
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
-
name
:
Log env vars
run
:
>-
run
:
>-
env
env
env
:
${{ matrix.env }}
-
name
:
Verify that there's no cached Python modules in sources
-
name
:
Verify that there's no cached Python modules in sources
if
:
>-
if
:
>-
...
@@ -58,14 +87,16 @@ jobs:
...
@@ -58,14 +87,16 @@ jobs:
! grep pyc setuptools.egg-info/SOURCES.txt
! grep pyc setuptools.egg-info/SOURCES.txt
-
name
:
'
Initialize
tox
envs:
${{
matrix.env.TOXENV
}}'
-
name
:
'
Initialize
tox
envs:
${{
matrix.env.TOXENV
}}'
run
:
|
run
:
>-
python -m tox --parallel auto --notest --skip-missing-interpreters false
python -m
env
:
${{ matrix.env }}
tox
--parallel auto
--notest
--skip-missing-interpreters false
-
name
:
Test with tox
-
name
:
Test with tox
run
:
|
run
:
>-
${{ startsWith(matrix.os, 'windows-') && 'setx NETWORK_REQUIRED ' || 'export NETWORK_REQUIRED=' }}1
python -m
python -m tox \
tox
--parallel
0 \
--parallel
auto
--
\
--
--cov
--cov
env
:
${{ matrix.env }}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment