Skip to content

Commit

Permalink
Merge branch 'main' into kjs/transpiler-plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsung committed Feb 19, 2024
2 parents d8b48c8 + 6da8cd7 commit 0def014
Show file tree
Hide file tree
Showing 3,563 changed files with 311,495 additions and 30,895 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This code is a Qiskit project.
#
# (C) Copyright IBM 2023.
# (C) Copyright IBM 2024.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE file in the root directory
Expand All @@ -10,14 +10,11 @@
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

# This Action runs checks things that we care about but would be
# too slow to check in every PR.

name: Extended checks
name: API checks
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *" # Every day at midnight UTC
- cron: "0 0 * * 0,2,4" # Every Sunday, Tuesday, and Thursday at midnight UTC

pull_request:
paths:
Expand All @@ -26,7 +23,7 @@ on:
- "docs/api/qiskit-ibm-runtime/**/*"

jobs:
extended-checks:
link-checker:
runs-on: ubuntu-latest
if: github.repository_owner == 'Qiskit'
steps:
Expand All @@ -37,22 +34,35 @@ jobs:
node-version: 18
- name: Install Node.js dependencies
run: npm ci

- name: Check external links
- name: Check links
run: >
npm run check:links --
--qiskit-release-notes
--current-apis
--dev-apis
--historical-apis
--skip-broken-historical
--external
pages-render:
runs-on: ubuntu-latest
if: github.repository_owner == 'Qiskit'
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install Node.js dependencies
run: npm ci
- name: Start local Docker preview
run: |
./start &
sleep 20
- name: Check current API pages render
- name: Check API pages render
run: >
npm run check-pages-render --
--qiskit-release-notes
--current-apis
--dev-apis
--historical-apis
50 changes: 0 additions & 50 deletions .github/workflows/crowdin-download-translations.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/crowdin-upload-english.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/learning-uploader-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
jobs:
e2e:
name: End-to-end test
if: ${{ github.event_name == 'schedule' || github.event.pull_request.head.repo.full_name == github.repository }}
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
script: |
const message = `Today's scheduled e2e test of the upload tool failed.
Please [check the logs](https://github.com/Qiskit/documentation/actions/runs/${context.workflow}).
Please [check the logs](https://github.com/Qiskit/documentation/actions/runs/${{ github.run_id }}/).
> [!NOTE]
> This issue was created by a GitHub action.
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,7 @@ jobs:
- name: Spellcheck
run: npm run check:spelling
- name: Link checker
run: >
npm run check:links --
--current-apis
--qiskit-release-notes
--historical-apis
--skip-broken-historical
run: npm run check:links
- name: Formatting
run: npm run check:fmt
- name: Typecheck
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/notebook-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,15 @@ jobs:
path: ".tox"
key: ${{ hashFiles('scripts/nb-tester/requirements.txt') }}

- name: Run tox
- name: Check lint
shell: python
run: |
import subprocess
files = """${{ steps.all-changed-files.outputs.all_changed_files }}"""
args = ["tox", "-e", "lint", "--"] + files.split("\n")
subprocess.run(args, check=True)
- name: Execute notebooks
shell: python
run: |
import subprocess
Expand Down
51 changes: 0 additions & 51 deletions .github/workflows/pages-render.yml

This file was deleted.

Loading

0 comments on commit 0def014

Please sign in to comment.