Fix docstring typo about SamplingRule #252
Workflow file for this run
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: Unit Testing | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
env: | |
py37: 3.7 | |
py38: 3.8 | |
py39: 3.9 | |
py310: '3.10' | |
py311: '3.11' | |
py312: '3.12' | |
DB_DATABASE: test_db | |
DB_USER: root | |
DB_PASSWORD: root | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [py37, py38, py39, py310, py311, py312] | |
testenv: [core, ext] | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Start MySQL | |
if: ${{ matrix.testenv == 'ext' }} | |
run: | | |
sudo /etc/init.d/mysql start | |
mysql -e 'CREATE DATABASE ${{ env.DB_DATABASE }};' -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }} | |
mysql -e 'CREATE DATABASE test_dburl;' -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }} | |
mysql -e "CREATE USER test_dburl_user@localhost IDENTIFIED BY 'test]password';" -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }} | |
mysql -e "GRANT ALL PRIVILEGES ON test_dburl.* TO test_dburl_user@localhost;" -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }} | |
mysql -e "FLUSH PRIVILEGES;" -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }} | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env[matrix.python-version] }} | |
- name: Install tox | |
run: pip install "tox<=3.27.1" -U tox-factor setuptools | |
- name: Cache tox environment | |
# Preserves .tox directory between runs for faster installs | |
uses: actions/cache@v3 | |
with: | |
path: | | |
.tox | |
~/.cache/pip | |
key: tox-cache-${{ matrix.python-version }}-${{ matrix.testenv }}-${{ hashFiles('tox.ini') }} | |
- name: Run tox | |
run: | | |
tox -f ${{ matrix.python-version }}-${{ matrix.testenv }} |