Skip to content

Bump cryptography from 42.0.7 to 42.0.8 (#884) #1870

Bump cryptography from 42.0.7 to 42.0.8 (#884)

Bump cryptography from 42.0.7 to 42.0.8 (#884) #1870

Workflow file for this run

name: Continuous integration
on: [push]
jobs:
runner-job:
runs-on: ubuntu-latest
strategy:
matrix:
django: ["django==4.2.13", "django==5.0.6"]
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
env:
POSTGRES_HOST: localhost
POSTGRES_PASSWORD: postgres
POSTGRES_PORT: 5432
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: "frontend/package-lock.json"
- name: Install javascript packages
working-directory: ./frontend
run: npm clean-install --audit=false --fund=false --loglevel=http
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- name: Install python packages
run: pip install ${{ matrix.django }} && pip install -r testproject/requirements.txt && pip install -r testproject/requirements_test.txt && pip install -r testproject/requirements_ci.txt && pip install -e .
- name: Run django check
run: python testproject/manage.py check
- name: Check migrations
run: python testproject/manage.py makemigrations django_file_form --check --noinput --verbosity=1
env:
CHECK_MIGRATIONS: true
- name: Build javascript
working-directory: ./frontend
run: npm run build
- name: Javascript test
working-directory: ./frontend
run: npm run test
- name: Create javascript coverage directory
run: mkdir js_coverage
- name: Test with coverage
run: COVERAGE=true coverage run --source=django_file_form,testproject/django_file_form_example testproject/manage.py test django_file_form_example -v 2
- name: Merge Python coverage
run: coverage report && coverage lcov
- name: Merge javascript coverage
working-directory: ./coverage
run: npm clean-install --audit=false --fund=false --loglevel=http && npm run merge_coverage
- name: Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true