From 258d88f3011a2226361c0642ff680840d49e8092 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Sat, 9 Jul 2022 09:41:20 +0530 Subject: [PATCH] [test] Split download tests so they can be more easily run in CI --- .github/workflows/download.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/download.yml b/.github/workflows/download.yml index ac48e5805c..7fdc5595a4 100644 --- a/.github/workflows/download.yml +++ b/.github/workflows/download.yml @@ -1,15 +1,31 @@ name: Download Tests on: [push, pull_request] jobs: - tests: - name: Download Tests + quick: + name: Quick Download Tests if: "contains(github.event.head_commit.message, 'ci run dl')" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.9 + - name: Install test requirements + run: pip install pytest + - name: Run tests + continue-on-error: true + run: ./devscripts/run_tests.sh download + + full: + name: Full Download Tests + if: "contains(github.event.head_commit.message, 'ci run dl all')" runs-on: ${{ matrix.os }} strategy: fail-fast: true matrix: os: [ubuntu-latest] - python-version: ['3.6', '3.7', '3.9', '3.10', 3.11-dev, pypy-3.6, pypy-3.7, pypy-3.8] + python-version: ['3.6', '3.7', '3.10', 3.11-dev, pypy-3.6, pypy-3.7, pypy-3.8] run-tests-ext: [sh] include: # atleast one of each CPython/PyPy tests must be in windows