Use a "domain" instead of writing to app.env directly #232
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: Run Tests | |
on: [push, pull_request] | |
env: | |
PYTEST_ADDOPTS: "--color=yes" | |
PYTHONWARNINGS: error | |
jobs: | |
run_pytest: | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Double-check Python version | |
run: | | |
python --version | |
- name: Checkout submodules | |
run: | | |
python tests/update_submodules.py | |
- name: Install Python package | |
env: | |
PYTHONWARNINGS: error,default::DeprecationWarning | |
run: | | |
python -m pip install . | |
- name: Install test dependencies | |
env: | |
PYTHONWARNINGS: error,default::DeprecationWarning | |
run: | | |
python -m pip install -r tests/requirements.txt | |
- name: Run pytest | |
run: | | |
python -m pytest |