Skip to content

Commit

Permalink
[testing] [ci] Focus on Windows (since that's where test flakiness wa…
Browse files Browse the repository at this point in the history
…s seen for sphinx-doc#11232) and run a broader matrix of Python versions
  • Loading branch information
jayaddison committed May 21, 2023
1 parent ffec3d5 commit 647df0a
Showing 1 changed file with 3 additions and 61 deletions.
64 changes: 3 additions & 61 deletions .github/workflows/main.yml
Expand Up @@ -16,9 +16,9 @@ env:
PYTHONWARNINGS: "error" # default: all warnings as errors

jobs:
ubuntu:
runs-on: ubuntu-latest
name: Python ${{ matrix.python }} (Docutils ${{ matrix.docutils }})
windows:
runs-on: windows-2019
name: Python ${{ matrix.python }} (Docutils ${{ matrix.docutils }}) (Windows)
strategy:
fail-fast: false
matrix:
Expand All @@ -36,20 +36,8 @@ 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 @@ -62,49 +50,3 @@ 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 647df0a

Please sign in to comment.