diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml index 46346199d..fc2dff098 100644 --- a/.github/workflows/web.yml +++ b/.github/workflows/web.yml @@ -29,10 +29,26 @@ jobs: DJANGO_VERSION: ${{ matrix.django }} - name: Migration check run: docker-compose run web bash -c 'wait-for-it db:3306 && python manage.py makemigrations --check' + - name: Show settings run: docker-compose run web python manage.py diffsettings - - name: Build test - run: docker-compose run web python manage.py test --keepdb --verbosity=2 + + - name: Run tests + run: docker-compose run web coverage run --source=. manage.py test --keepdb --verbosity=2 + + - name: Coveralls Parallel + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.github_token }} + path-to-lcov: .coverage + parallel: true + + - name: Coveralls Finished + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.github_token }} + path-to-lcov: .coverage + parallel-finished: true docs: runs-on: ubuntu-latest diff --git a/requirements/dev.txt b/requirements/dev.txt index 49eeef91e..5345eefcf 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -12,3 +12,5 @@ django-coverage-plugin==1.6.0 django-test-plus==1.3.1 vcrpy==2.1.0 ipdb==0.12.2 +coverage==4.5.4 +django-coverage-plugin==1.6.0 \ No newline at end of file