Accept -x options for all db commands (Fixes #438) #108
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: build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
- run: python -m pip install --upgrade pip wheel | |
- run: pip install tox tox-gh-actions | |
- run: tox -eflake8 | |
- run: tox -edocs | |
tests: | |
name: tests | |
strategy: | |
matrix: | |
# TODO: add windows-latest | |
os: [ubuntu-latest, macos-latest] | |
python: ['3.8', '3.9', '3.10', '3.11', 'pypy-3.9'] | |
sqla: ['sqlalchemy<2 flask-sqlalchemy<3.1', 'sqlalchemy>=2 flask-sqlalchemy>=3.1'] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python }} | |
- run: python -m pip install --upgrade pip wheel | |
- run: pip install tox tox-gh-actions | |
- run: SQLALCHEMY_VERSION="${{ matrix.sqla }}" tox |