diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 623f059..4c2e635 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -6,6 +6,39 @@ on: - "master" jobs: + tests: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install Dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install coverage coveralls + + - name: Run Tests + run: | + python manage.py test + + - name: Run codecov + uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: ./coverage.xml + flags: unittests + name: codecov-umbrella + fail_ci_if_error: true + + - name: Coveralls GitHub Action + uses: coverallsapp/github-action@1.1.3 + build: runs-on: ubuntu-latest steps: