Skip to content

Bump shogo82148/actions-setup-mysql from 1.36.0 to 1.36.3 in the github-actions group #1558

Bump shogo82148/actions-setup-mysql from 1.36.0 to 1.36.3 in the github-actions group

Bump shogo82148/actions-setup-mysql from 1.36.0 to 1.36.3 in the github-actions group #1558

Workflow file for this run

name: 🔂 Unit tests
on:
push:
branches: [main]
pull_request:
branches: [main]
paths:
- "yak_server/**"
- "tests/**"
- "pyproject.toml"
- ".github/workflows/test.yml"
jobs:
unit-tests:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
name: Python ${{ matrix.python-version }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up MySQL
uses: shogo82148/actions-setup-mysql@v1.36.3
with:
mysql-version: "8.0"
root-password: ${{ secrets.MYSQL_PASSWORD }}
- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v5
id: setup-python
with:
python-version: ${{ matrix.python-version }}
- name: Set up cache
uses: actions/cache@v4
id: cache
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml', 'requirements-tests.txt') }}-test-v03
- name: Install dependencies
run: pip install -r requirements-tests.txt
- name: Run test
env:
MYSQL_HOST: 127.0.0.1
MYSQL_USER_NAME: root
MYSQL_PASSWORD: ${{ secrets.MYSQL_PASSWORD }}
MYSQL_PORT: 3306
run: pytest --cov=yak_server --cov=scripts --cov=tests --cov=testing --cov-report=xml --cov-config=pyproject.toml -vv
if: ${{ always() }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
if: ${{ always() }}
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true