Skip to content

Commit

Permalink
Fix: Add step to delete doctrees and buildinfo
Browse files Browse the repository at this point in the history
- Added `depth: 0` to checkout to avoid reno bugs.
  • Loading branch information
raynelfss committed Nov 25, 2024
1 parent 17a4e3d commit ba1a164
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/lint_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,20 @@ on:
merge_group:

concurrency:
group: ${{ github.repository }}-${{ github.ref }}-${{ github.head_ref }}
group: ${{ github.repository }}-${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
docs:
if: github.repository_owner == 'Qiskit'
name: Docs
runs-on: ubuntu-latest
strategy:
fail-fast: False
fail-fast: true
steps:
- uses: actions/checkout@v4
with:
# We need to fetch the whole history so 'reno' can do its job and we can inspect tags.
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand All @@ -27,23 +30,26 @@ jobs:
run: tools/install_ubuntu_docs_dependencies.sh
- name: Run docs
run: tox -e docs
- name: Clean up docs detritus
run: rm -rf docs/_build/html/{.doctrees,.buildinfo}
- name: Store built documentation artifact
uses: actions/upload-artifact@v4
with:
name: qiskit-docs
path: |
./docs/_build/html/*
!**/.doctrees
!**/.buildinfo
if-no-files-found: error
lint:
if: github.repository_owner == 'Qiskit'
name: Lint
runs-on: ubuntu-latest
strategy:
fail-fast: False
fail-fast: true
steps:
- uses: actions/checkout@v4
with:
# We need to fetch the whole history so 'reno' can do its job and we can inspect tags.
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down

0 comments on commit ba1a164

Please sign in to comment.