Dropped support django2.0,2.1,3.0,3.1,4.0,4.1,5.0,5.1 #160
This file contains hidden or 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 | |
| on: [ pull_request, workflow_dispatch, push ] | |
| env: | |
| MODE: GIT_ACTIONS_DEV | |
| DJANGO_SETTINGS_MODULE: test_app.test_settings | |
| jobs: | |
| basic_checks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.13 | |
| - name: Install requirements | |
| run: | | |
| pip install setuptools | |
| python setup.py install | |
| pip install -r requirements.txt | |
| pip install -r requirements_test.txt | |
| - name: Run Migrations | |
| run: | | |
| cd example | |
| python manage.py migrate | |
| - name: Run Tests | |
| run: | | |
| pip install setuptools | |
| pip install genbadge[all] | |
| cd example | |
| coverage run manage.py test | |
| coverage report | |
| coverage xml | |
| # coverage html | |
| - name: Coverage Badge | |
| run: | | |
| genbadge coverage -i example/coverage.xml -o coverage.svg | |
| #uses: tj-actions/coverage-badge-py@1788babcb24544eb5bbb6e0d374df5d1e54e670f # v2 | |
| #with: | |
| # working-directory: example | |
| # output: ../coverage.svg | |
| - name: Verify Changed files | |
| uses: tj-actions/verify-changed-files@a1c6acee9df209257a246f2cc6ae8cb6581c1edf #v20 | |
| id: verify-changed-files | |
| with: | |
| files: coverage.svg | |
| - name: Commit files | |
| if: steps.verify-changed-files.outputs.files_changed == 'true' | |
| run: | | |
| #mv example/coverage.svg coverage.svg | |
| git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
| git config --local user.name "github-actions[bot]" | |
| git add coverage.svg | |
| git commit -m "Updated coverage.svg" | |
| - name: Push changes | |
| if: steps.verify-changed-files.outputs.files_changed == 'true' | |
| uses: ad-m/github-push-action@master | |
| with: | |
| github_token: ${{ secrets.github_token }} | |
| branch: ${{ github.ref }} |