Skip to content

Bump braces from 3.0.2 to 3.0.3 #1038

Bump braces from 3.0.2 to 3.0.3

Bump braces from 3.0.2 to 3.0.3 #1038

Workflow file for this run

name: Test
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
fail-fast: false
max-parallel: 4
matrix:
python-version: ['3.10', '3.11', '3.12']
env:
GCAMPUS_DB_USER: 'gcampus'
GCAMPUS_DB_NAME: 'gcampustest'
GCAMPUS_DB_PASSWORD: 'test-password'
GCAMPUS_DB_HOST: 'localhost'
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
postgis:
image: postgis/postgis:13-3.1
env:
POSTGRES_DB: ${{ env.GCAMPUS_DB_NAME }}
POSTGRES_USER: ${{ env.GCAMPUS_DB_USER }}
POSTGRES_PASSWORD: ${{ env.GCAMPUS_DB_PASSWORD }}
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- name: Install dependencies with apt
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends --no-install-suggests binutils libproj-dev gdal-bin libpango-1.0-0 libpangoft2-1.0-0
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install Node.js packages
run: npm ci --also=dev
- name: Build static files
run: npm run build
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install Requirements
run: pip install -r requirements.txt
- name: Collect static files
run: python manage.py collectstatic --no-input
env:
DJANGO_SETTINGS_MODULE: 'gcampus.settings.test'
GCAMPUS_REDIS_HOST: 'localhost'
- name: Run Tests
run: python manage.py test
env:
DJANGO_SETTINGS_MODULE: 'gcampus.settings.test'
GCAMPUS_REDIS_HOST: 'localhost'