Add user-defined extra fields for several models #196
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Run Unit Test Workflow | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
run-unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v3 | |
- name: Build environment | |
run: | | |
chmod +x ghostwriter-cli-linux | |
./ghostwriter-cli-linux install --dev | |
- name: Generate Coverage report | |
run: | | |
docker-compose -f local.yml run django coverage run manage.py test --exclude-tag=GitHub | |
docker-compose -f local.yml run django coverage xml -o "coverage/reports/coverage.xml" | |
- name: Upload Coverage report artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage-report | |
path: coverage/reports/coverage.xml | |
upload-coverage-report: | |
needs: run-unit-tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v3 | |
- name: Download artifacts | |
uses: actions/download-artifact@v3 | |
- name: Upload coverage report to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
name: codecov-ghostwriter | |
fail_ci_if_error: true | |
verbose: true |