Move CICD from travis to github actions

This commit is contained in:
Robbe Sneyders
2021-06-10 14:19:28 +02:00
parent 68502a8c27
commit f72fbc4d25
4 changed files with 49 additions and 20 deletions

41
.github/workflows/pipeline.yml vendored Normal file
View File

@@ -0,0 +1,41 @@
name: CI/CD pipeline
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install tox tox-gh-actions setuptools coveralls
- name: Test with tox
run: tox
- name: Coveralls
run: coveralls --service github
env:
COVERALLS_PARALLEL: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: test-${{ matrix.python-version }}
finish-coveralls:
needs: test
runs-on: ubuntu-latest
steps:
- name: Install coveralls
run: pip install coveralls
- name: Coveralls Finished
run: coveralls --service github --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -1,13 +0,0 @@
language: python
python:
- "3.6"
- "3.7"
- "3.8"
install:
- pip install --upgrade setuptools tox tox-travis coveralls
dist:
- bionic
script:
- tox
after_success:
- coveralls

View File

@@ -5,9 +5,9 @@ Connexion
:alt: Join the chat at https://gitter.im/zalando/connexion
:target: https://gitter.im/zalando/connexion?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
.. image:: https://travis-ci.org/zalando/connexion.svg?branch=master
:target: https://travis-ci.org/zalando/connexion
:alt: Travis CI build status
.. image:: https://github.com/zalando/connexion/actions/workflows/pipeline.yml/badge.svg
:alt: Build status
:target: https://github.com/zalando/connexion/actions/workflows/pipeline.yml
.. image:: https://coveralls.io/repos/zalando/connexion/badge.svg?branch=master
:target: https://coveralls.io/r/zalando/connexion?branch=master

View File

@@ -12,10 +12,11 @@ envlist =
isort-check-tests
flake8
[travis]
3.6=py36-min,py36-pypi
3.7=py37-min,py37-pypi,isort-check,isort-check-examples,isort-check-tests,flake8
3.8=py38-min
[gh-actions]
python =
3.6: py36-min,py36-pypi
3.7: py37-min,py37-pypi,isort-check,isort-check-examples, isort-check-tests,flake8
3.8: py38-min
[testenv]
setenv=PYTHONPATH = {toxinidir}:{toxinidir}