Skip to content

Commit

Permalink
added debug step (#568)
Browse files Browse the repository at this point in the history
* added debug step

* added upload step without clean exclude

* added additional upload step

* removed clean exclude

* put coverage report in static directory

* changed to generated directory

* added bert to see if it shows up in gh pages

* removed warning

* added needs pram

* updated coverage location

* removed bert

* downloaded report to source root

* added coverage to static path

* set coverage as extra pth

* updated coverage report location

* updated link to be direct

* added flag again

* removed debug step

* changed job name
  • Loading branch information
bryce13950 authored May 11, 2024
1 parent f011a5e commit 3d6dbbb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,10 @@ jobs:
build-docs:
# When running on a PR, this just checks we can build the docs without errors
# When running on merge to main, it builds the docs and then another job deploys them
name: ${{ github.event_name == 'pull_request' && 'Check Build Docs' || 'Build Docs' }}
name: 'Build Docs'
runs-on: ubuntu-latest
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev')
needs: code-checks
steps:
- uses: actions/checkout@v4
- name: Install Poetry
Expand All @@ -181,6 +183,11 @@ jobs:
version: 1.0
- name: Install dependencies
run: poetry install --with docs
- name: Download Test Coverage Artifact
uses: actions/download-artifact@v3
with:
name: test-coverage
path: docs/source/_static/coverage
- name: Build Docs
run: poetry run build-docs
env:
Expand All @@ -196,19 +203,14 @@ jobs:
runs-on: ubuntu-latest
# Only run if merging a PR into main
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: [build-docs, code-checks]
needs: build-docs
steps:
- uses: actions/checkout@v4
- name: Download Docs Artifact
uses: actions/download-artifact@v3
with:
name: documentation
path: docs/build
- name: Download Test Coverage Artifact
uses: actions/download-artifact@v3
with:
name: test-coverage
path: docs/build/coverage
- name: Upload to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ content/special_cases
:caption: Development
content/contributing
Code Coverage <./coverage/index.html#http://>
Code Coverage <https://transformerlensorg.github.io/TransformerLens/_static/coverage/>
Github <https://github.com/TransformerLensOrg/TransformerLens>
```

0 comments on commit 3d6dbbb

Please sign in to comment.