Skip to content

Bump werkzeug from 3.0.1 to 3.0.3 (#3918) #71

Bump werkzeug from 3.0.1 to 3.0.3 (#3918)

Bump werkzeug from 3.0.1 to 3.0.3 (#3918) #71

Workflow file for this run

name: Hypha CI
on:
pull_request:
branches:
- main
push:
branches:
- main
- test
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build-fe:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "npm"
- name: install node dependencies
run: npm install --quiet
- name: builds static assets
run: npm run build
build-be:
runs-on: ubuntu-latest
env:
DJANGO_SETTINGS_MODULE: hypha.settings.test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
cache: "pip"
cache-dependency-path: "**/requirements*.txt"
- name: install python dependencies
run: |
python3 -m venv venv
. venv/bin/activate
pip install --upgrade pip
pip install wheel
pip install -r requirements-dev.txt
lint-fe:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "npm"
- name: install node dependencies
run: npm install --quiet
- name: run scss and js linting
run: npm run lint
lint-be:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
- name: Install python dependencies
run: pip install `grep -E "ruff|djhtml" requirements-dev.txt`
- name: Run linting
run: ruff check --output-format=github .
- name: Run formating check
run: ruff format --check .
- name: Run djhtml
run: djhtml hypha/ --check
test-be:
runs-on: ubuntu-latest
env:
DATABASE_URL: postgresql://hypha:hypha@localhost/hypha?sslmode=disable
DJANGO_SETTINGS_MODULE: hypha.settings.test
SEND_MESSAGES: false
services:
postgres:
image: postgres:14-alpine
env:
POSTGRES_USER: hypha
POSTGRES_PASSWORD: hypha
POSTGRES_DB: hypha
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
strategy:
matrix:
group: [1, 2, 3]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
cache: "pip"
cache-dependency-path: "**/requirements*.txt"
- uses: codecov/codecov-action@v4
- name: install python dependencies
run: |
python3 -m venv venv
source venv/bin/activate
mkdir hypha/static_compiled
pip install --upgrade pip wheel
pip install -r requirements-dev.txt
- name: Run django checks
run: venv/bin/python manage.py check
- name: Check Django Migrations
run: |
venv/bin/python manage.py makemigrations --dry-run --verbosity=3
venv/bin/python manage.py makemigrations --check
- name: Run collect static
run: venv/bin/python manage.py collectstatic --noinput --no-post-process --verbosity=1
- name: Run pytest
run: venv/bin/pytest --cov --cov-report term:skip-covered --splits 3 --group ${{ matrix.group }}