Merge pull request #163 from MySecondLanguage/fixed-modal-action #273
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install pipenv | |
run: pip install pipenv | |
- name: Install dependencies | |
run: pipenv install | |
- name: Install coverage | |
run: pipenv install coverage | |
- name: Run Django tests with coverage | |
env: | |
DJANGO_SETTINGS_MODULE: nxtbn.settings | |
run: pipenv run coverage run --source='.' manage.py test | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
env: | |
DJANGO_SETTINGS_MODULE: nxtbn.settings |