Skip to content

Runs full testsuite including containerized MariaDB test service #5

Runs full testsuite including containerized MariaDB test service

Runs full testsuite including containerized MariaDB test service #5

Workflow file for this run

on:
push:
name: Test
jobs:
test:
runs-on: ubuntu-latest
services:
db:
image: mariadb:10
env:
MYSQL_DATABASE: "wp"
MYSQL_USER: "wp"
MYSQL_PASSWORD: "wp"
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
ports:
- 3306
steps:
- name: Check out sources
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Cache pipenv
uses: actions/cache@v3
id: cache-python
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-pipenv
- name: Install Python dependencies
if: steps.cache-python.outputs.cache-hit != 'true'
run: |
pip install -U pip pipenv
pipenv install --system --deploy --categories='packages api build prep dev-packages'
- name: Run tests
run: WP_SKIP_TEST_DB_FIXTURE=1 pytest