diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 903a5b1..b5f694a 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -36,28 +36,39 @@ jobs: fetch-depth: '0' - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* +refs/heads/*:refs/remotes/origin/* - name: Set up Python 3.9 + if: github.event_name == 'push' || github.event_name == 'schedule' uses: actions/setup-python@v4 with: python-version: '3.9' - - name: Build and test including remote checks (3.9) mypy - if: (matrix.os == 'macos-12') && (github.event_name == 'pull_request' || github.event_name == 'release' || contains(github.ref, 'refs/heads/wheel') || github.event_name == 'schedule') + - name: Build and test (3.9) + if: github.event_name == 'push' || github.event_name == 'schedule' + shell: bash + run: | + ./.github/workflows/build-test nomypy + - name: Set up Python 3.10 + uses: actions/setup-python@v4 + with: + python-version: '3.10' + - name: Build and test including remote checks (3.10) mypy + shell: bash + 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' ) run: | ./.github/workflows/build-test mypy env: PYTKET_RUN_REMOTE_TESTS: 1 - - name: Build and test including remote checks (3.9) nomypy + - name: Build and test including remote checks (3.10) 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') shell: bash run: | ./.github/workflows/build-test nomypy env: PYTKET_RUN_REMOTE_TESTS: 1 - - name: Set up Python 3.10 + - name: Set up Python 3.11 if: github.event_name == 'push' || github.event_name == 'pull_request' || github.event_name == 'schedule' uses: actions/setup-python@v4 with: - python-version: '3.10' - - name: Build and test (3.10) + python-version: '3.11' + - name: Build and test (3.11) if: github.event_name == 'push' || github.event_name == 'pull_request' || github.event_name == 'schedule' shell: bash run: | @@ -107,10 +118,10 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: '0' - - name: Set up Python 3.9 + - name: Set up Python 3.10 uses: actions/setup-python@v4 with: - python-version: '3.9' + python-version: '3.10' - name: Download all wheels uses: actions/download-artifact@v3 with: diff --git a/docs/intro.txt b/docs/intro.txt index bde5473..06e1d42 100644 --- a/docs/intro.txt +++ b/docs/intro.txt @@ -4,7 +4,7 @@ pytket-iqm ``pytket-iqm`` is an extension to ``pytket`` that allows ``pytket`` circuits to be executed on IQM's quantum devices and simulators. -``pytket-iqm`` is available for Python 3.9 and 3.10, on Linux, MacOS and +``pytket-iqm`` is available for Python 3.9, 3.10 and 3.11, on Linux, MacOS and Windows. To install, run: :: diff --git a/setup.py b/setup.py index 5a862c3..4ce20d9 100644 --- a/setup.py +++ b/setup.py @@ -47,6 +47,7 @@ "Environment :: Console", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "License :: OSI Approved :: Apache Software License", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX :: Linux",