Skip to content

Add a new SSH-based location. #271

Add a new SSH-based location.

Add a new SSH-based location. #271

Workflow file for this run

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