Skip to content

Bump sphinxcontrib-bibtex from 1.0.0 to 2.6.2 #552

Bump sphinxcontrib-bibtex from 1.0.0 to 2.6.2

Bump sphinxcontrib-bibtex from 1.0.0 to 2.6.2 #552

Workflow file for this run

name: code
on:
pull_request:
push:
branches: master
jobs:
postgres_compatibility:
name: Postgres compatibility ${{ matrix.postgres-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
# always use latest Python b/c the point here is to test PostgreSQL compatibility
python-version: ["3.11"]
postgres-version: [11-bullseye, 12, 13, 14, 15]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Django
if: matrix.postgres-version == '11-bullseye'
run: |
# Django 4.1 is the last one to support Postgres 11
pip install Django==4.1.*
- name: Install Django
if: matrix.postgres-version != '11-bullseye'
run: |
# always use latest Django b/c the point here is to test PostgreSQL compatibility
pip install Django
- name: Install Python dependencies
run: |
pip install psycopg2 coverage
python setup.py develop
- name: Create database
run: |
# maps the container port to localhost
docker run --name db -p 5432:5432 -d -e POSTGRES_PASSWORD=testing postgres:${{ matrix.postgres-version }}
sleep 10 # wait for server to initialize
PGPASSWORD="testing" psql -c 'create database dts_test_project;' -U postgres -h localhost
- name: Run tests
run: |
export DATABASE_PASSWORD="testing"
./run_tests.sh
django_compatibility:
name: Django compatibility ${{ matrix.django-version}} / Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: ["3.10", "3.11", "3.12"]
django-version: ["==4.1.*", "==4.2.*", "==5.0.*"]
# always use latest Postgres b/c the point here is to test Django compatibility
postgres-version: [latest]
exclude:
- python-version: "3.12"
django-version: "==4.1.*"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
pip install psycopg2 coverage setuptools
pip install Django${{ matrix.django-version }}
python setup.py develop
- name: Create database
run: |
# maps the container port to localhost
docker run --name db -p 5432:5432 -d -e POSTGRES_PASSWORD=testing postgres:${{ matrix.postgres-version }}
sleep 10 # wait for server to initialize
PGPASSWORD="testing" psql -c 'create database dts_test_project;' -U postgres -h localhost
- name: Run tests
run: |
export DATABASE_PASSWORD="testing"
./run_tests.sh
- name: Show coverage
run: |
mv dts_test_project/.coverage* .
coverage report -m
- name: Send coverage to CodeCov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
verbose: true