2020-09-02 14:12:08 +00:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on: push
|
|
|
|
|
|
|
|
jobs:
|
2021-07-02 15:18:05 +00:00
|
|
|
|
2020-09-02 14:12:08 +00:00
|
|
|
mypy:
|
|
|
|
name: 'MyPy'
|
|
|
|
runs-on: ubuntu-latest
|
2021-07-08 17:53:28 +00:00
|
|
|
|
2020-09-02 14:12:08 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
2021-07-08 17:53:28 +00:00
|
|
|
|
2020-09-02 14:12:08 +00:00
|
|
|
- name: Setup python
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
2021-07-08 17:53:28 +00:00
|
|
|
python-version: '3.9'
|
|
|
|
|
2020-09-02 14:12:08 +00:00
|
|
|
- name: Install dependencies
|
2021-07-08 17:53:28 +00:00
|
|
|
run: pip install -U . --upgrade-strategy eager -r requirements-test.txt
|
|
|
|
|
2020-09-02 14:12:08 +00:00
|
|
|
- name: Run MyPy check
|
|
|
|
run: mypy tractor/ --ignore-missing-imports
|
|
|
|
|
|
|
|
testing:
|
2021-07-02 15:18:05 +00:00
|
|
|
|
2020-09-02 14:31:10 +00:00
|
|
|
name: '${{ matrix.os }} Python ${{ matrix.python }} - ${{ matrix.spawn_backend }}'
|
2021-08-19 18:22:29 +00:00
|
|
|
timeout-minutes: 9
|
2020-09-02 14:12:08 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
2021-07-02 15:18:05 +00:00
|
|
|
|
2020-09-02 14:12:08 +00:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2020-09-03 13:41:09 +00:00
|
|
|
os: [ubuntu-latest, windows-latest]
|
2021-08-19 17:54:50 +00:00
|
|
|
python: ['3.8', '3.9']
|
2020-09-02 14:12:08 +00:00
|
|
|
spawn_backend: ['trio', 'mp']
|
2021-07-02 15:18:05 +00:00
|
|
|
|
2020-09-02 14:12:08 +00:00
|
|
|
steps:
|
2021-07-02 15:18:05 +00:00
|
|
|
|
2020-09-02 14:12:08 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
2021-07-02 15:18:05 +00:00
|
|
|
|
2020-09-02 14:12:08 +00:00
|
|
|
- name: Setup python
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: '${{ matrix.python }}'
|
2021-07-02 15:18:05 +00:00
|
|
|
|
2020-09-02 14:12:08 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: pip install -U . -r requirements-test.txt -r requirements-docs.txt --upgrade-strategy eager
|
2021-07-02 15:18:05 +00:00
|
|
|
|
|
|
|
- name: Run tests
|
|
|
|
run: pytest tests/ --spawn-backend=${{ matrix.spawn_backend }} -rs
|
|
|
|
|
|
|
|
testing-msgspec:
|
|
|
|
# runs py3.9 jobs on all OS's but with optional `msgspec` dep installed
|
|
|
|
name: '${{ matrix.os }} Python ${{ matrix.python }} - ${{ matrix.spawn_backend }} - msgspec'
|
|
|
|
timeout-minutes: 10
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, windows-latest]
|
|
|
|
python: ['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 .[msgspec] -r requirements-test.txt -r requirements-docs.txt --upgrade-strategy eager
|
|
|
|
|
2020-09-02 14:12:08 +00:00
|
|
|
- name: Run tests
|
2020-10-13 20:30:19 +00:00
|
|
|
run: pytest tests/ --spawn-backend=${{ matrix.spawn_backend }} -rs
|