Skip to content

Commit

Permalink
Revert "[testing] [ci] Focus on Windows (since that's where test flak…
Browse files Browse the repository at this point in the history
…iness was seen for sphinx-doc#11232) and run a broader matrix of Python versions"

This reverts commit 647df0a.
  • Loading branch information
jayaddison committed May 21, 2023
1 parent 94d4d50 commit 8c9984a
Showing 1 changed file with 61 additions and 3 deletions.
64 changes: 61 additions & 3 deletions .github/workflows/main.yml
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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

0 comments on commit 8c9984a

Please sign in to comment.