build(deps): Bump certifi from 2023.7.22 to 2024.7.4 #594
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: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
cache: pip | |
cache-dependency-path: '**/requirements*.txt' | |
# Don't install editable projects in the current working directory. | |
# https://pip.pypa.io/en/latest/reference/pip_install/#install-src | |
- run: pip install --src $GITHUB_WORKSPACE/../src -r requirements.txt | |
# Check requirements.txt contains production requirements. | |
- run: ./manage.py --help | |
# Don't install editable projects in the current working directory. | |
# https://pip.pypa.io/en/latest/reference/pip_install/#install-src | |
- run: pip install --src $GITHUB_WORKSPACE/../src -r requirements_dev.txt | |
# Compile messages, so that lib-cove-web translations are available. | |
- name: Install gettext | |
run: | | |
sudo apt update | |
sudo apt install gettext | |
- run: ./manage.py compilemessages | |
- name: Run checks and tests | |
env: | |
PYTHONWARNINGS: error | |
shell: bash | |
run: | | |
./manage.py migrate | |
./manage.py makemigrations --check --dry-run | |
./manage.py check --fail-level WARNING | |
# https://github.com/OpenDataServices/flatten-tool/issues/412 | |
pytest -W error -W ignore::ResourceWarning --cov cove_ocds --cov cove_project | |
- env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: coveralls --service=github |