Skip to content

Commit

Permalink
CI. Move to GitHub actions. (cvat-ai#263)
Browse files Browse the repository at this point in the history
* Moving to GitHub Actions
  • Loading branch information
dvkruchinin authored Jun 1, 2021
1 parent d42ff14 commit 70e2647
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 38 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Coverage
on:
push:
branches:
- 'develop'
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.

0 comments on commit 70e2647

Please sign in to comment.