Guard against headers being None #105
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: | |
- develop | |
- main | |
env: | |
DJANGO_ENV: test | |
jobs: | |
pytest: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install Python dependencies | |
run: | | |
cd test_app | |
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb | |
sudo apt install -y ./wkhtmltox_0.12.6.1-2.jammy_amd64.deb | |
pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run migrations | |
run: | | |
cd test_app | |
python manage.py makemigrations readux_ingest_ecds | |
python manage.py migrate | |
- name: Run Tests | |
run: | | |
cd test_app | |
pytest tests/ |