Run tests on CI

This commit is contained in:
Silver Ghost 2022-11-15 14:12:57 +03:00
parent 6dbff3c3f0
commit b15e85885c
No known key found for this signature in database

View File

@ -6,6 +6,39 @@ on:
- "master" - "master"
jobs: 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: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps: