forked from goodboy/tractor
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
name: CI
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
mypy:
|
|
name: 'MyPy'
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: '3.9'
|
|
|
|
- name: Install dependencies
|
|
run: pip install -U . --upgrade-strategy eager -r requirements-test.txt
|
|
|
|
- name: Run MyPy check
|
|
run: mypy tractor/ --ignore-missing-imports
|
|
|
|
testing:
|
|
name: '${{ matrix.os }} Python ${{ matrix.python }} - ${{ matrix.spawn_backend }}'
|
|
timeout-minutes: 5
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest]
|
|
python: ['3.8', '3.9']
|
|
spawn_backend: ['trio', 'mp']
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Setup python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: '${{ matrix.python }}'
|
|
- name: Install dependencies
|
|
run: pip install -U . -r requirements-test.txt -r requirements-docs.txt --upgrade-strategy eager
|
|
- name: Run tests
|
|
run: pytest tests/ --spawn-backend=${{ matrix.spawn_backend }} -rs
|