Skip to content

Commit

Permalink
Try improving test efficiency
Browse files Browse the repository at this point in the history
  • Loading branch information
frankharkins committed Dec 11, 2023
1 parent 267f99e commit 5125fbf
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/notebook-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,25 @@ jobs:
with:
python-version: "3.11"

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v40

- name: List all changed files
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
echo "$file was changed"
done
- name: Install LaTeX dependencies
run: |
sudo apt-get install texlive-pictures texlive-latex-extra poppler-utils
NEEDS_LATEX="docs/build/circuit-visualization.ipynb"
for FILE in $NEEDS_LATEX; do
if [ ${{ steps.changed-files.outputs.all_changed_files }} =~ $FILE ]; then
sudo apt-get install texlive-pictures texlive-latex-extra poppler-utils
break
fi
done
- name: Install Qiskit IBM Runtime to save account
# To save account; this is re-installed during the "Run tox" step
Expand All @@ -52,3 +68,4 @@ jobs:
with:
python-version: "3.11"
tox-envs: "py311"
tox-posargs: ${{ steps.changed-files.outputs.all_changed_files }}

0 comments on commit 5125fbf

Please sign in to comment.