mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-06 04:19:26 +00:00
Move CICD from travis to github actions
This commit is contained in:
41
.github/workflows/pipeline.yml
vendored
Normal file
41
.github/workflows/pipeline.yml
vendored
Normal 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 }}
|
||||
13
.travis.yml
13
.travis.yml
@@ -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
|
||||
@@ -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
|
||||
|
||||
9
tox.ini
9
tox.ini
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user