From e960e390ef2633fc8cf42a39b9cc7f747cd168a2 Mon Sep 17 00:00:00 2001 From: sciencewhiz Date: Thu, 5 Oct 2023 22:40:38 -0700 Subject: [PATCH] Update python version and sphinx version matrix (#20) * Update python version and sphinx version matrix * Update actions * Add fetch depth to fix not getting tag * Sphinx 4 doesn't support Python >=3.10 * Add Python 3.10 Sphinx 4 * Use .* Sphinx versions as pyhton 3.10 support was fixed in 4.2 --- .github/workflows/workflow.yml | 28 +++++++++++----------------- dev-requirements.txt | 2 +- 2 files changed, 12 insertions(+), 18 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 1158a76..19711bc 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -13,8 +13,8 @@ jobs: check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 with: python-version: 3.8 - name: Black @@ -25,26 +25,20 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.8', '3.9', 'pypy3'] - sphinx-version: ['4', '5'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy3.10'] + sphinx-version: ['4.*', '5.*', '6.*', '7.*'] include: - - python-version: '3.10' - sphinx-version: '4.3' - - python-version: '3.10' - sphinx-version: '5' - - python-version: '3.6' - sphinx-version: '3' - python-version: '3.7' sphinx-version: '3' - - python-version: '3.6' - sphinx-version: '2' - python-version: '3.7' sphinx-version: '2' name: "Test Extension - Python(${{ matrix.python-version }}), Sphinx(${{ matrix.sphinx-version }})" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -63,13 +57,13 @@ jobs: runs-on: ubuntu-latest if: contains(github.ref, 'refs/tags/') steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: - python-version: '3.7' + python-version: '3.8' - name: Install Dependencies run: | python -m pip install --upgrade pip diff --git a/dev-requirements.txt b/dev-requirements.txt index 97975fe..33b7dc5 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,4 +1,4 @@ -e . black pytest==6.2.5 -wheel==0.34.2 \ No newline at end of file +wheel==0.40.0 \ No newline at end of file