Run reports in a separate Python process. (#41) #265
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: Test | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
jobs: | |
run: | |
runs-on: ${{ matrix.config.os }} | |
name: ${{matrix.config.os }} (${{ matrix.config.py }}) | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- {os: macos-latest, py: '3.11'} | |
- {os: ubuntu-latest, py: '3.8'} | |
- {os: ubuntu-latest, py: '3.9'} | |
- {os: ubuntu-latest, py: '3.10'} | |
- {os: ubuntu-latest, py: '3.11'} | |
- {os: windows-latest, py: '3.11'} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.config.py }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.config.py }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install hatch | |
- name: Test | |
env: | |
VAULT_TOKEN: ${{ secrets.VAULT_TOKEN }} | |
YOUTRACK_TOKEN: ${{ secrets.YOUTRACK_TOKEN }} | |
run: | | |
hatch run cov-ci | |
- name: Lint | |
run: | | |
# https://github.com/python/mypy/issues/10863 | |
mkdir -p .mypy_cache | |
hatch run lint:all | |
- name: Test install | |
run: | | |
pip install . | |
python -c "import orderly; import outpack" | |
- name: Upload to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
# This can be useful, but the false positive rate is | |
# annoyingly high. | |
fail_ci_if_error: false |