From 27d9ddaeb754344c09994e88e9591033c715ccec Mon Sep 17 00:00:00 2001 From: Peter Chang Date: Thu, 15 Jun 2023 15:08:28 +0100 Subject: [PATCH] Update python versions for #1259 (#1273) Remove 3.7 and add 3.11 and fixes #1259 --- .github/workflows/ci.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 34dc020d45..4bed1ad8eb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -25,10 +25,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.7', '3.8', '3.9', '3.10'] + python-version: ['3.8', '3.9', '3.10', '3.11'] max-parallel: 5 env: python_version: ${{ matrix.python-version }} + python_deploy_version: '3.8' # version to use for deployment steps: - name: Checkout Repository @@ -37,7 +38,7 @@ jobs: fetch-depth: 0 - name: Deploy Information - if: ${{ github.event.inputs.deploy && env.python_version == '3.7' }} + if: ${{ github.event.inputs.deploy && env.python_version == env.python_deploy_version }} run: | echo "The HTML NeXus User Manual will be pushed to" echo " https://github.com/nexusformat/definitions/tree/gh-pages" @@ -85,14 +86,14 @@ jobs: ls -lAFgh build/manual/build/latex/nexus.pdf - name: Build and Commit the User Manual - if: ${{ github.event.inputs.deploy && env.python_version == '3.7' }} + if: ${{ github.event.inputs.deploy && env.python_version == env.python_deploy_version }} uses: sphinx-notes/pages@master with: # path to the conf.py directory documentation_path: build/manual/source - name: Deploy the User Manual - if: ${{ github.event.inputs.deploy && env.python_version == '3.7' }} + if: ${{ github.event.inputs.deploy && env.python_version == env.python_deploy_version }} uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }}