From 8c9984ac6fd4f9e73002a25313bd34f4ff41aa67 Mon Sep 17 00:00:00 2001 From: James Addison Date: Sun, 21 May 2023 22:36:50 +0100 Subject: [PATCH] Revert "[testing] [ci] Focus on Windows (since that's where test flakiness was seen for #11232) and run a broader matrix of Python versions" This reverts commit 647df0ae6996a88b75bfb1393f42878ddadec685. --- .github/workflows/main.yml | 64 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 61 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 633295a9abf..fcabcbe7df5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,9 +16,9 @@ env: PYTHONWARNINGS: "error" # default: all warnings as errors jobs: - windows: - runs-on: windows-2019 - name: Python ${{ matrix.python }} (Docutils ${{ matrix.docutils }}) (Windows) + ubuntu: + runs-on: ubuntu-latest + name: Python ${{ matrix.python }} (Docutils ${{ matrix.docutils }}) strategy: fail-fast: false matrix: @@ -36,8 +36,20 @@ jobs: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python }} uses: actions/setup-python@v4 + if: "!endsWith(matrix.python, '-dev')" with: python-version: ${{ matrix.python }} + - name: Set up Python ${{ matrix.python }} (deadsnakes) + uses: deadsnakes/action@v2.1.1 + if: "endsWith(matrix.python, '-dev')" + with: + python-version: ${{ matrix.python }} + env: + PYTHONWARNINGS: "" + - name: Check Python version + run: python --version + - name: Install graphviz + run: sudo apt-get install graphviz - name: Install dependencies run: | python -m pip install --upgrade pip @@ -50,3 +62,49 @@ jobs: PYTHONWARNINGS: "" - name: Test with pytest run: python -m pytest -vv --durations 25 + + windows: + runs-on: windows-2019 + name: Windows + + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install .[test] + env: + PYTHONWARNINGS: "" + - name: Test with pytest + run: python -m pytest -vv --durations 25 + + docutils-latest: + runs-on: ubuntu-latest + name: Docutils HEAD + + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3 + uses: actions/setup-python@v4 + with: + python-version: "3" + - name: Check Python version + run: python --version + - name: Install graphviz + run: sudo apt-get install graphviz + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install .[test] + env: + PYTHONWARNINGS: "" + - name: Install Docutils' HEAD + run: python -m pip install git+https://repo.or.cz/docutils.git\#subdirectory=docutils + env: + PYTHONWARNINGS: "" + - name: Test with pytest + run: python -m pytest -vv