chore(Continuous Integration): fix syntax error in CI GitHub Action #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
workflow_call: | |
push: | |
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:3306 | |
steps: | |
- name: Check out sources | |
uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- 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 |