-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from sodafoundation/anvithks-gh-actions
[Migrate CI] Added workflow for GitHub actions CI. Deleted travis.yml.
- Loading branch information
Showing
3 changed files
with
44 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters