Skip to content

Commit

Permalink
Use Python 3.12 base for non-pytest/min coverage checks (#1018)
Browse files Browse the repository at this point in the history
This PR updates the CI checks to use a Python 3.12 base instead of
Python 3.8 (which reaches EOL in Oct 2024). This will also allow the
pipeline to run against the latest versions of the `css` and `qss`
dependencies as some newer releases have already dropped support for
Python 3.8/3.9 for example.
  • Loading branch information
bharat-thotakura authored Aug 9, 2024
1 parent af8942e commit f2a8b37
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 26 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.12
- uses: actions/cache@v4
with:
path: ${{ env.pythonLocation }}
Expand All @@ -43,10 +43,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.12
- uses: actions/cache@v4
with:
path: ${{ env.pythonLocation }}
Expand All @@ -64,10 +64,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.12
- uses: actions/cache@v4
with:
path: ${{ env.pythonLocation }}
Expand All @@ -85,10 +85,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.12
- uses: actions/cache@v4
with:
path: ${{ env.pythonLocation }}
Expand Down Expand Up @@ -159,10 +159,10 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.12
- uses: actions/cache@v4
with:
path: ${{ env.pythonLocation }}
Expand All @@ -180,10 +180,10 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.12
- uses: actions/cache@v4
with:
path: ${{ env.pythonLocation }}
Expand All @@ -203,10 +203,10 @@ jobs:
timeout-minutes: 6
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.12
- uses: actions/cache@v4
with:
path: ${{ env.pythonLocation }}
Expand Down Expand Up @@ -236,10 +236,10 @@ jobs:
name: Notebook check for ${{ matrix.type }}
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/daily-integration-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,23 @@ name: Daily Integration Check

on:
schedule:
- cron: "0 14 * * *" # Daily at 14:00 UTC
workflow_dispatch: # so that we can also run manually, e.g. for testing

- cron: "0 14 * * *" # Daily at 14:00 UTC
workflow_dispatch: # so that we can also run manually, e.g. for testing

jobs:
daily-integration-check:
name: Pytest integration check
env:
SUPERSTAQ_API_KEY : ${{ secrets.SUPERSTAQ_API_KEY }}
TEST_USER_IBMQ_TOKEN : ${{ secrets.TEST_USER_IBMQ_TOKEN }}
SUPERSTAQ_API_KEY: ${{ secrets.SUPERSTAQ_API_KEY }}
TEST_USER_IBMQ_TOKEN: ${{ secrets.TEST_USER_IBMQ_TOKEN }}
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -32,7 +31,7 @@ jobs:
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TEST_USER_IBMQ_TOKEN : ${{ secrets.TEST_USER_IBMQ_TOKEN }}
TEST_USER_IBMQ_TOKEN: ${{ secrets.TEST_USER_IBMQ_TOKEN }}
with:
filename: .github/integration-check-failure-issue.md
update_existing: true
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
timeout-minutes: 6
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down

0 comments on commit f2a8b37

Please sign in to comment.