From 9976bb68341b86b4e67b29bef508cdf81c60d04a Mon Sep 17 00:00:00 2001 From: cqc-melf <70640934+cqc-melf@users.noreply.github.com> Date: Wed, 23 Oct 2024 17:00:56 +0100 Subject: [PATCH] update os version (#100) --- .github/workflows/build_and_test.yml | 16 ++++++++-------- .github/workflows/docs.yml | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 9bfdb1b..9f1f191 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -22,7 +22,7 @@ jobs: name: pyquil - Build and test module strategy: matrix: - os: ['ubuntu-22.04', 'macos-12', 'windows-2022'] + os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 @@ -41,7 +41,7 @@ jobs: run: | ./.github/workflows/build-test nomypy - name: Pull docker images - if: ${{ matrix.os == 'ubuntu-22.04' }} + if: ${{ matrix.os == 'ubuntu-latest' }} run: | docker pull rigetti/quilc docker pull rigetti/qvm @@ -50,12 +50,12 @@ jobs: with: python-version: '3.11' - name: Build and test including remote checks (3.11) mypy - if: (matrix.os == 'macos-12') && (github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) || github.event_name == 'release' || github.event_name == 'schedule' ) + if: (matrix.os == 'macos-latest') && (github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) || github.event_name == 'release' || github.event_name == 'schedule' ) shell: bash run: | ./.github/workflows/build-test mypy - name: Build and test including remote checks (3.11) nomypy - if: (matrix.os != 'macos-12') && (github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) || github.event_name == 'release' || github.event_name == 'schedule') + if: (matrix.os != 'macos-latest') && (github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) || github.event_name == 'release' || github.event_name == 'schedule') shell: bash run: | ./.github/workflows/build-test nomypy @@ -77,13 +77,13 @@ jobs: - name: install poetry run: pip install poetry - name: Install docs dependencies - if: (matrix.os == 'ubuntu-22.04') && (github.event_name == 'pull_request' || github.event_name == 'schedule' ) + if: (matrix.os == 'ubuntu-latest') && (github.event_name == 'pull_request' || github.event_name == 'schedule' ) run: | cd docs bash ./install.sh for w in `find wheelhouse/ -type f -name "*.whl"` ; do poetry install $w ; done - name: Build docs - if: (matrix.os == 'ubuntu-22.04') && (github.event_name == 'pull_request' || github.event_name == 'schedule' ) + if: (matrix.os == 'ubuntu-latest') && (github.event_name == 'pull_request' || github.event_name == 'schedule' ) timeout-minutes: 20 run: | cd docs @@ -94,7 +94,7 @@ jobs: name: Publish to pypi if: github.event_name == 'release' needs: pyquil-checks - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - name: Download all wheels # downloading all three files into the wheelhouse @@ -119,7 +119,7 @@ jobs: name: Build docs if: github.event_name == 'release' needs: publish_to_pypi - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index c5c10af..54f27b9 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -11,7 +11,7 @@ on: jobs: docs: name: build docs - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: