From bdde646d4c9b526e83dc7f592a84d0aafe7657a1 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 2 Jul 2021 11:18:05 -0400 Subject: [PATCH] Add msgspec installs, drop py3.7 --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 447b4f3..b90e070 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,7 @@ name: CI on: push jobs: + mypy: name: 'MyPy' runs-on: ubuntu-latest @@ -23,23 +24,59 @@ jobs: run: mypy tractor/ --ignore-missing-imports testing: + name: '${{ matrix.os }} Python ${{ matrix.python }} - ${{ matrix.spawn_backend }}' timeout-minutes: 9 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 + + 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 + - name: Run tests run: pytest tests/ --spawn-backend=${{ matrix.spawn_backend }} -rs