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
7fa2fcf9
Commit
7fa2fcf9
authored
Sep 02, 2019
by
Sviatoslav Sydorenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add GitHub Actions CI/CD test suite workflow
parent
a3e6e683
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
75 additions
and
0 deletions
+75
-0
.github/workflows/python-tests.yml
.github/workflows/python-tests.yml
+75
-0
No files found.
.github/workflows/python-tests.yml
0 → 100644
View file @
7fa2fcf9
name
:
Test suite
on
:
push
:
pull_request
:
schedule
:
-
cron
:
1 0 * * *
# Run daily at 0:01 UTC
jobs
:
tests
:
name
:
👷
runs-on
:
${{ matrix.os }}
strategy
:
# max-parallel: 5
matrix
:
python-version
:
-
3.7
-
3.6
-
3.5
-
2.7
os
:
-
ubuntu-18.04
-
ubuntu-16.04
-
macOS-10.14
-
windows-2019
-
windows-2016
env
:
-
TOXENV
:
python
steps
:
-
uses
:
actions/checkout@master
-
name
:
Set up Python ${{ matrix.python-version }}
uses
:
actions/setup-python@v1
with
:
version
:
${{ matrix.python-version }}
-
name
:
Upgrade pip/setuptools/wheel
run
:
>-
python
-m pip install
--disable-pip-version-check
--upgrade
pip setuptools wheel
-
name
:
Install tox
run
:
>-
python -m pip install --upgrade tox tox-venv
-
name
:
Log installed dists
run
:
>-
python -m pip freeze --all
-
name
:
Log env vars
run
:
>-
env
env
:
${{ matrix.env }}
-
name
:
Update egg_info based on setup.py in checkout
run
:
>-
python -m bootstrap
env
:
${{ matrix.env }}
-
name
:
Verify that there's no cached Python modules in sources
if
:
>-
! startsWith(matrix.os, 'windows-')
run
:
>-
! grep pyc setuptools.egg-info/SOURCES.txt
-
name
:
'
Initialize
tox
envs:
${{
matrix.env.TOXENV
}}'
run
:
|
python -m tox --parallel auto --notest
env
:
${{ matrix.env }}
-
name
:
Test with tox
run
:
|
${{ startsWith(matrix.os, 'windows-') && 'setx NETWORK_REQUIRED ' || 'export NETWORK_REQUIRED=' }}1
python -m tox \
--parallel 0 \
-- \
--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