2020-09-02 14:12:08 +00:00
|
|
|
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:
|
2020-09-02 14:56:39 +00:00
|
|
|
python-version: '3.8'
|
2020-09-02 14:12:08 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: pip install -U . --upgrade-strategy eager
|
|
|
|
- name: Run MyPy check
|
|
|
|
run: mypy tractor/ --ignore-missing-imports
|
|
|
|
|
|
|
|
testing:
|
2020-09-02 14:31:10 +00:00
|
|
|
name: '${{ matrix.os }} Python ${{ matrix.python }} - ${{ matrix.spawn_backend }}'
|
|
|
|
timeout-minutes: 10
|
2020-09-02 14:12:08 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2020-09-02 14:18:12 +00:00
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
2020-09-02 14:12:08 +00:00
|
|
|
python: ['3.7', '3.8']
|
|
|
|
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
|
2020-09-02 14:16:05 +00:00
|
|
|
run: pytest tests/ --spawn-backend=${{ matrix.spawn_backend }}
|