Skip to content

Commit

Permalink
#47 Add CI workflow
Browse files Browse the repository at this point in the history
Co-authored-by: Vitor <vitorcx010@gmail.com>
  • Loading branch information
shayanealcantara and vitorcx committed Sep 26, 2019
1 parent d6f0326 commit 57a7532
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on:
pull_request:
branches:
- master
- release/*
- develop

jobs:
test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- name: Setup enviroment
run: docker-compose up -d --build
- name: Run tests
run: docker exec acacia_backend bash -c "cd src/ && coverage run manage.py test && coverage xml -o cov.xml"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1.0.2
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./src/cov.xml
flags: unittests
name: codecov-umbrella

0 comments on commit 57a7532

Please sign in to comment.