Skip to content

Commit

Permalink
Merge pull request #108 from sodafoundation/anvithks-gh-actions
Browse files Browse the repository at this point in the history
[Migrate CI] Added workflow for GitHub actions CI. Deleted travis.yml.
  • Loading branch information
skdwriting authored May 20, 2021
2 parents de1583c + 1b087a5 commit 694832f
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 21 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: SODA Orchestration CI Build

on: [push, pull_request, workflow_dispatch]

jobs:
build:

strategy:
matrix:
python-version: [2.7, 3.5]
os: [ubuntu-16.04, ubuntu-18.04]

runs-on: ${{ matrix.os }}
steps:
- name: Checkout project
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Setup Pre-requisites
run: |
sudo mkdir -p /var/log/opensds
sudo touch /var/log/opensds/orchestration.log
sudo chmod 666 /var/log/opensds/orchestration.log
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install tox tox-gh-actions codecov
- name: Test with tox
run: tox

- name: After success run Codecov Coverage tool.
run: codecov

- name: Upload Coverage to Codecov tool.
uses: codecov/codecov-action@v1
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# orchestration

[![Build Status](https://travis-ci.com/sodafoundation/orchestration.svg?branch=master)](https://travis-ci.com/sodafoundation/orchestration) [![Coverage Report](https://img.shields.io/codecov/c/github/sodafoundation/orchestration/master.svg)](https://codecov.io/github/sodafoundation/orchestration?branch=master)
[![Build Status](https://github.com/sodafoundation/orchestration/actions/workflows/main.yml/badge.svg)](https://github.com/sodafoundation/orchestration/actions/workflows/main.yml)
[![Coverage Report](https://img.shields.io/codecov/c/github/sodafoundation/orchestration/master.svg)](https://codecov.io/github/sodafoundation/orchestration?branch=master)
[![Releases](https://img.shields.io/github/release/sodafoundation/orchestration/all.svg?style=flat-square)](https://github.com/sodafoundation/orchestration/releases)
[![LICENSE](https://img.shields.io/github/license/sodafoundation/orchestration.svg?style=flat-square)](https://github.com/sodafoundation/orchestration/blob/master/LICENSE)

Expand Down

0 comments on commit 694832f

Please sign in to comment.