Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github Actions CI/CD tests for project #394

Merged
merged 5 commits into from
Jun 7, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update travis CI/CD
insspb committed Jun 7, 2020
commit 082573ba79c8a7306345883c3625e85e52cb7048
39 changes: 22 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use a container-based environment
sudo: false
dist: xenial
os: linux

language: python

@@ -14,12 +14,23 @@ jobs:
- language: python
python: 3.6
name: "linting"
script:
- tox -e lint

env:
- MONGOENGINE=latest_pip
- MONGOENGINE=dev
env: TOXENV=lint
- language: python
python: 3.6
name: "Test on python 3.6"
env: TOXENV=py36
- language: python
python: 3.7
name: "Test on python 3.7"
env: TOXENV=py37
- language: python
python: 3.8
name: "Test on python 3.8"
env: TOXENV=py38
- language: python
python: pypy3
name: "Test on python pypy3"
env: TOXENV=pypy3

services:
- mongodb
@@ -31,11 +42,8 @@ install:
- travis_retry pip install tox>=3.14
- travis_retry pip install virtualenv

# Cache dependencies installed via pip
cache: pip

script:
- tox -e $(echo py$TRAVIS_PYTHON_VERSION-me_$MONGOENGINE | tr -d . | sed -e 's/pypypy/pypy/') -- --with-coverage
- tox

after_success:
- coveralls --verbose
@@ -60,11 +68,8 @@ deploy:
distributions: "sdist bdist_wheel"

# only deploy on tagged commits (aka GitHub releases) and only for the
# parent repo's builds running Python 2.7 along with dev MongoEngine (we run
# Travis against many different Python and MongoEngine versions and we don't
# want the deploy to occur multiple times).
# parent repo's builds running Python 3.6
on:
tags: true
condition: "$MONGOENGINE = dev"
python: 3.5
python: 3.6
repo: MongoEngine/flask-mongoengine