Enforce limit on number of tags per object #319
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: Python CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
run_tests: | |
name: tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] # Add macos-latest later? | |
python-version: ['3.8'] | |
toxenv: ["py38-django32", "py38-django42", "package", "quality"] | |
# We're only testing against MySQL 8 right now because 5.7 is | |
# incompatible with Djagno 4.2. We'd have to make the tox.ini file more | |
# complicated than it's worth given the short expected shelf-life of | |
# MySQL 5.7 in our stack. | |
mysql-version: ["8"] | |
services: | |
mysql: | |
image: mysql:${{ matrix.mysql-version }} | |
ports: | |
- 3306:3306 | |
env: | |
MYSQL_DATABASE: "test_oel_db" | |
MYSQL_USER: "test_oel_user" | |
MYSQL_PASSWORD: "test_oel_pass" | |
MYSQL_RANDOM_ROOT_PASSWORD: true | |
# these options are blatantly copied from edx-platform's values | |
options: >- | |
--health-cmd "mysqladmin ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 3 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install pip | |
run: pip install -r requirements/pip.txt | |
- name: Install Dependencies | |
run: pip install -r requirements/ci.txt | |
- name: Run Tests | |
env: | |
TOXENV: ${{ matrix.toxenv }} | |
run: tox -e ${{ matrix.toxenv }} | |