Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZEO
Commits
33f2f695
Commit
33f2f695
authored
Apr 23, 2021
by
Jens Vagelpohl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- first cut at switch to GH actions
parent
3111c7e0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
114 additions
and
56 deletions
+114
-56
.github/workflows/tests.yml
.github/workflows/tests.yml
+60
-0
.travis.yml
.travis.yml
+0
-53
tox.ini
tox.ini
+54
-3
No files found.
.github/workflows/tests.yml
0 → 100644
View file @
33f2f695
name
:
tests
on
:
push
:
pull_request
:
schedule
:
-
cron
:
'
0
12
*
*
0'
# run once a week on Sunday
jobs
:
build
:
strategy
:
matrix
:
config
:
# [Python version, tox env]
-
[
"
2.7"
,
"
py27"
]
-
[
"
2.7"
,
"
py27-msgpack1"
]
-
[
"
2.7"
,
"
py27-zeo4"
]
-
[
"
3.5"
,
"
py35"
]
-
[
"
3.5"
,
"
py35-zeo4"
]
-
[
"
3.6"
,
"
py36"
]
-
[
"
3.6"
,
"
py36-mtacceptor"
]
-
[
"
3.6"
,
"
py36-mtacceptor-msgpack1"
]
-
[
"
3.7"
,
"
py37"
]
-
[
"
3.7"
,
"
py37-mtacceptor"
]
-
[
"
3.7"
,
"
py37-mtacceptor-msgpack1"
]
-
[
"
3.7"
,
"
py37-uvloop"
]
-
[
"
pypy"
"
pypy"
]
-
[
"
pypy3"
"
pypy3"
]
-
[
"
pypy3"
"
pypy3-mtacceptor"
]
-
[
"
pypy3"
"
pypy3-mtacceptor-msgpack1"
]
runs-on
:
ubuntu-latest
name
:
${{ matrix.config[1] }}
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Set up Python
uses
:
actions/setup-python@v2
with
:
python-version
:
${{ matrix.config[0] }}
-
name
:
Pip cache
uses
:
actions/cache@v2
with
:
path
:
~/.cache/pip
key
:
${{ runner.os }}-pip-${{ matrix.config[0] }}-${{ hashFiles('setup.*', 'tox.ini') }}
restore-keys
:
|
${{ runner.os }}-pip-${{ matrix.config[0] }}-
${{ runner.os }}-pip-
-
name
:
Install dependencies
run
:
|
python -m pip install --upgrade pip
pip install tox
-
name
:
Test
run
:
tox -e ${{ matrix.config[1] }}
-
name
:
Coverage
if
:
matrix.config[1] == 'coverage'
run
:
|
pip install coveralls coverage-python-version
coveralls --service=github
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
.travis.yml
deleted
100644 → 0
View file @
3111c7e0
language
:
python
matrix
:
include
:
-
os
:
linux
python
:
2.7
-
os
:
linux
python
:
pypy
-
os
:
linux
python
:
3.5
-
os
:
linux
python
:
3.6
-
os
:
linux
python
:
3.6
env
:
ZEO_MTACCEPTOR=1
-
os
:
linux
python
:
3.6
env
:
ZEO_MSGPACK=1 ZEO_MTACCEPTOR=1
-
os
:
linux
python
:
3.7
env
:
ZEO_MTACCEPTOR=1
dist
:
xenial
-
os
:
linux
python
:
3.7
env
:
ZEO_MSGPACK=1 ZEO_MTACCEPTOR=1
dist
:
xenial
-
os
:
linux
python
:
pypy3
env
:
ZEO_MTACCEPTOR=1
-
os
:
linux
python
:
pypy3
env
:
ZEO_MSGPACK=1 ZEO_MTACCEPTOR=1
-
os
:
linux
python
:
2.7
env
:
ZEO_MSGPACK=1
-
os
:
linux
python
:
2.7
env
:
ZEO4_SERVER=1
-
os
:
linux
python
:
3.5
env
:
ZEO4_SERVER=1
-
os
:
linux
python
:
3.7
env
:
BUILOUT_OPTIONS=extra=,uvloop
install
:
-
pip install zc.buildout
-
buildout $BUILOUT_OPTIONS
cache
:
directories
:
-
eggs
script
:
-
bin/test -vv -j3
notifications
:
email
:
false
tox.ini
View file @
33f2f695
[tox]
[tox]
envlist
=
envlist
=
py27,py35,py36,py37,pypy,pypy3,simple,docs
py27
py35
py36
py37
pypy
pypy3
simple
docs
[testenv]
[testenv]
commands
=
commands
=
# Run unit tests first.
# Run unit tests first.
zope-testrunner
-u
--test-path
=
src
--auto-color --auto-progress {posargs
}
zope-testrunner
-u
--test-path
=
src
{posargs:-vc
}
# Only run functional tests if unit tests pass.
# Only run functional tests if unit tests pass.
zope-testrunner
-f
--test-path
=
src
--auto-color --auto-progress {posargs
}
zope-testrunner
-f
--test-path
=
src
{posargs:-vc
}
deps
=
deps
=
ZODB
>=
4.2.0b1
ZODB
>=
4.2.0b1
random2
random2
...
@@ -25,6 +32,50 @@ deps =
...
@@ -25,6 +32,50 @@ deps =
# ZopeUndo is needed as soft-dependency for a regression test
# ZopeUndo is needed as soft-dependency for a regression test
ZopeUndo
ZopeUndo
[testenv:py27-msgpack1]
setenv
=
ZEO_MSGPACK
=
1
[testenv:py27-zeo4]
setenv
=
ZEO4_SERVER
=
1
[testenv:py35-zeo4]
setenv
=
ZEO4_SERVER
=
1
[testenv:py36-mtacceptor]
setenv
=
ZEO_MTACCEPTOR
=
1
[testenv:py36-mtacceptor-msgpack1]
setenv
=
ZEO_MTACCEPTOR
=
1
ZEO_MSGPACK
=
1
[testenv:py37-mtacceptor]
setenv
=
ZEO_MTACCEPTOR
=
1
[testenv:py37-mtacceptor-msgpack1]
setenv
=
ZEO_MTACCEPTOR
=
1
ZEO_MSGPACK
=
1
[testenv:py37-uvloop]
deps
=
{
[testenv]
deps}
uvloop
[testenv:pypy3-mtacceptor]
setenv
=
ZEO_MTACCEPTOR
=
1
[testenv:pypy3-mtacceptor-msgpack1]
setenv
=
ZEO_MTACCEPTOR
=
1
ZEO_MSGPACK
=
1
[testenv:simple]
[testenv:simple]
# Test that 'setup.py test' works
# Test that 'setup.py test' works
basepython
=
basepython
=
...
...
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