Skip to content

more padding options #1526

more padding options

more padding options #1526

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
tests:
timeout-minutes: 30
runs-on: ubuntu-latest
services:
postgres:
image: postgres:13
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
env:
POSTGRES_PASSWORD: postgres
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Setup Python and install dependencies
uses: actions/setup-python@v5
with:
cache: 'pip'
python-version-file: '.python-version'
cache-dependency-path: requirements/test.txt
- run: pip install -r requirements/test.txt
- name: Check migrations
run: python manage.py makemigrations --check
- name: Run tests and generate coverage reports
run: coverage run --source '.' manage.py test --settings=openstax.settings.test
env:
SALESFORCE_USERNAME: ${{ secrets.SALESFORCE_USERNAME }}
SALESFORCE_PASSWORD: ${{ secrets.SALESFORCE_PASSWORD }}
SALESFORCE_SECURITY_TOKEN: ${{ secrets.SALESFORCE_SECURITY_TOKEN }}
SOCIAL_AUTH_OPENSTAX_KEY: ${{ secrets.SOCIAL_AUTH_OPENSTAX_KEY }}
SOCIAL_AUTH_OPENSTAX_SECRET: ${{ secrets.SOCIAL_AUTH_OPENSTAX_SECRET }}
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: openstax/openstax-cms