diff --git a/.github/workflows/nox-session.yml b/.github/workflows/nox-session.yml index d56c9b3..513b1e2 100644 --- a/.github/workflows/nox-session.yml +++ b/.github/workflows/nox-session.yml @@ -34,12 +34,12 @@ on: os: description: "Runner OS" type: choice - default: "ubuntu-22.04" + default: "ubuntu-latest" required: true options: - - "ubuntu-22.04" - - "macos-12" - - "windows-2022" + - "ubuntu-latest" + - "macos-latest" + - "windows-latest" nox-session: description: "Nox session to run" type: choice diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8491502..4e72577 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,7 @@ env: jobs: build: name: AQT - Build and Upload Package and Docs - runs-on: "ubuntu-22.04" + runs-on: "ubuntu-latest" steps: - uses: actions/checkout@v4 with: @@ -82,7 +82,7 @@ jobs: name: Publish Package if: github.event_name == 'release' needs: build - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - name: Download all wheels uses: actions/download-artifact@v4 @@ -103,7 +103,7 @@ jobs: name: Publish Docs if: github.event_name == 'release' needs: publish-package - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest permissions: pages: write id-token: write diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index dc9b57e..02e8aac 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,19 +21,19 @@ jobs: fail-fast: false matrix: include: - - { python: "3.11", os: "ubuntu-22.04", session: "pre-commit" } - - { python: "3.10", os: "ubuntu-22.04", session: "tests" } - - { python: "3.10", os: "macos-12", session: "tests" } - - { python: "3.11", os: "macos-12", session: "mypy" } - - { python: "3.10", os: "windows-2022", session: "tests" } - - { python: "3.10", os: "macos-12", session: "tests" } - - { python: "3.11", os: "windows-2022", session: "tests" } - - { python: "3.11", os: "ubuntu-22.04", session: "tests" } - - { python: "3.11", os: "macos-12", session: "tests" } - - { python: "3.12", os: "windows-2022", session: "tests" } - - { python: "3.12", os: "ubuntu-22.04", session: "tests" } - - { python: "3.12", os: "macos-12", session: "tests" } - - { python: "3.11", os: "ubuntu-22.04", session: "docs-build" } + - { python: "3.11", os: "ubuntu-latest", session: "pre-commit" } + - { python: "3.10", os: "ubuntu-latest", session: "tests" } + - { python: "3.10", os: "macos-latest", session: "tests" } + - { python: "3.11", os: "macos-latest", session: "mypy" } + - { python: "3.10", os: "windows-latest", session: "tests" } + - { python: "3.10", os: "macos-latest", session: "tests" } + - { python: "3.11", os: "windows-latest", session: "tests" } + - { python: "3.11", os: "ubuntu-latest", session: "tests" } + - { python: "3.11", os: "macos-latest", session: "tests" } + - { python: "3.12", os: "windows-latest", session: "tests" } + - { python: "3.12", os: "ubuntu-latest", session: "tests" } + - { python: "3.12", os: "macos-latest", session: "tests" } + - { python: "3.11", os: "ubuntu-latest", session: "docs-build" } uses: ./.github/workflows/nox-session.yml with: python-version: ${{ matrix.python }} @@ -47,7 +47,7 @@ jobs: fail-fast: false matrix: include: - - { python: "3.11", os: "ubuntu-22.04", session: "tests" } + - { python: "3.11", os: "ubuntu-latest", session: "tests" } uses: ./.github/workflows/nox-session.yml with: python-version: ${{ matrix.python }} @@ -58,7 +58,7 @@ jobs: check-for-pytket-pre-release: name: Check for pytket pre-release - runs-on: "ubuntu-22.04" + runs-on: "ubuntu-latest" outputs: pre-release-exists: ${{ steps.check-pytket-prerelease.outputs.PRE_RELEASE_EXISTS }} steps: @@ -89,15 +89,15 @@ jobs: fail-fast: false matrix: include: - - { python: "3.10", os: "windows-2022", session: "tests" } - - { python: "3.10", os: "ubuntu-22.04", session: "tests" } - - { python: "3.10", os: "macos-12", session: "tests" } - - { python: "3.11", os: "windows-2022", session: "tests" } - - { python: "3.11", os: "ubuntu-22.04", session: "tests" } - - { python: "3.11", os: "macos-12", session: "tests" } - - { python: "3.12", os: "windows-2022", session: "tests" } - - { python: "3.12", os: "ubuntu-22.04", session: "tests" } - - { python: "3.12", os: "macos-12", session: "tests" } + - { python: "3.10", os: "windows-latest", session: "tests" } + - { python: "3.10", os: "ubuntu-latest", session: "tests" } + - { python: "3.10", os: "macos-latest", session: "tests" } + - { python: "3.11", os: "windows-latest", session: "tests" } + - { python: "3.11", os: "ubuntu-latest", session: "tests" } + - { python: "3.11", os: "macos-latest", session: "tests" } + - { python: "3.12", os: "windows-latest", session: "tests" } + - { python: "3.12", os: "ubuntu-latest", session: "tests" } + - { python: "3.12", os: "macos-latest", session: "tests" } uses: ./.github/workflows/nox-session.yml with: python-version: ${{ matrix.python }} @@ -113,7 +113,7 @@ jobs: - check-for-pytket-pre-release - tests-pre-release if: always() - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - shell: python name: Check job results