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

Moving to GitHub Actions. #1

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
31 changes: 31 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Coverage
on:
push:
branches:
- 'develop'
- 'develop-tmp'
jobs:
coverage_tests_on_python:
strategy:
fail-fast: false
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Installing python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Installing dependencies
run: |
pip install coverage tensorflow
pip install -e ./
- name: Code instrumentation
run: |
coverage run -m unittest discover -v
coverage run -a datum.py -h
coverage xml
- name: Sending coverage results
run: |
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r coverage.xml -t ${{ secrets.CODACY_PROJECT_TOKEN }}
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI
on:
push:
branches:
- 'master'
pull_request:
branches:
- '*'
jobs:
build_and_tests_on_python:
strategy:
fail-fast: false
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Installing python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Installing dependencies
run: |
pip install tensorflow
pip install -e ./
- name: Unit testing
run: |
python -m unittest discover -v
datum -h
38 changes: 0 additions & 38 deletions .travis.yml

This file was deleted.