Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
Kirill Smelkov
ZODB
Commits
a17324e8
Commit
a17324e8
authored
Apr 23, 2021
by
Jens Vagelpohl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- first cut moving tests from Travis CI to GitHub Actions
parent
c07bf23d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
45 deletions
+55
-45
.github/workflows/tests.yml
.github/workflows/tests.yml
+55
-0
.travis.yml
.travis.yml
+0
-45
No files found.
.github/workflows/tests.yml
0 → 100644
View file @
a17324e8
name
:
tests
on
:
push
:
pull_request
:
schedule
:
-
cron
:
'
0
12
*
*
0'
# run once a week on Sunday
jobs
:
build
:
strategy
:
fail-fast
:
false
matrix
:
config
:
# [Python version, tox env]
-
[
"
2.7"
,
"
py27"
]
-
[
"
3.5"
,
"
py35"
]
-
[
"
3.6"
,
"
py36"
]
-
[
"
3.7"
,
"
py37"
]
-
[
"
3.8"
,
"
py38"
]
-
[
"
3.8"
,
"
py38-pure"
]
-
[
"
pypy2"
,
"
pypy"
]
-
[
"
pypy3"
,
"
pypy3"
]
-
[
"
3.7"
,
"
docs"
]
-
[
"
3.7"
,
"
coverage"
]
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 @
c07bf23d
language
:
python
env
:
global
:
ZOPE_INTERFACE_STRICT_IRO
:
1
python
:
-
2.7
-
3.5
-
3.6
-
3.7
-
3.8
-
pypy
-
pypy3
jobs
:
include
:
# Special Linux builds
-
name
:
"
Python:
3.8,
pure
(no
C
extensions)"
python
:
3.8
env
:
PURE_PYTHON=1
install
:
-
pip install -U pip
# BBB use older setuptools on pypy, setuptools 50.0.0 is not compatible with pypy 7.1.1-beta0
-
if [[ $TRAVIS_PYTHON_VERSION == pypy3* ]]; then pip install -U setuptools==49.6.0 zc.buildout; fi
-
if [[ $TRAVIS_PYTHON_VERSION != pypy3* ]]; then pip install -U setuptools zc.buildout; fi
-
buildout $BUILOUT_OPTIONS
script
:
-
if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then bin/coverage run bin/coverage-test -v; fi
-
if [[ $TRAVIS_PYTHON_VERSION == pypy* ]]; then bin/test -v; fi
-
if [[ $TRAVIS_PYTHON_VERSION != pypy3* ]]; then pip install --upgrade --requirement doc/requirements.txt; fi
-
if [[ $TRAVIS_PYTHON_VERSION != pypy3* ]]; then make -C doc html; fi
-
if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then pip install coveralls; fi
# install early enough to get into the cache
after_success
:
-
if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then bin/coverage combine; fi
-
if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then coveralls; fi
notifications
:
email
:
false
cache
:
directories
:
-
$HOME/.cache/pip
-
eggs
before_cache
:
-
rm -f $HOME/.cache/pip/log/debug.log
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