Skip to content

Merge pull request #67 from jorenham/py312-tests #21

Merge pull request #67 from jorenham/py312-tests

Merge pull request #67 from jorenham/py312-tests #21

Workflow file for this run

---
name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
# container:
# image: debian:bullseye
services:
postgres:
image: postgres:latest
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- 5432/tcp
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
mysql:
image: mysql:latest
env:
MYSQL_USER: mysql
MYSQL_PASSWORD: password
MYSQL_RANDOM_ROOT_PASSWORD: true
ports:
- 3306/tcp
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=5
env:
TEST_MYSQL_HOST: mysql
TEST_MYSQL_USER: mysql
TEST_MYSQL_PASSWORD: password
TEST_POSTGRES_HOST: postgres
TEST_POSTGRES_USER: postgres
TEST_POSTGRES_PASSWORD: password
continue-on-error: ${{ contains(matrix.python-version, 'pypy') || contains(matrix.python-version, 'dev') }}
strategy:
fail-fast: false
matrix:
python-version:
- '3.5'
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- 'pypy3.6'
- 'pypy3.7'
- 'pypy3.8'
- 'pypy3.9'
- 'pypy3.10'
steps:
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libcurl4-openssl-dev
version: 1.0
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- run: >
pip install wheel
&& pip install -r dev-requirements.txt
&& pip install .
- run: coverage run -m unittest openid.test.test_suite
- run: coverage report