Skip to content

Commit

Permalink
Update demo checker path (#363)
Browse files Browse the repository at this point in the history
* remove unnecessary steps (display files); update the path where the markdown file is being stored

* temporarily add workflow execution when pushing to branch

* Update to a non-protected branch

* comment

* torch and tensorflow requirement bumps

* get numpy required by TF 2.6

* remove push trigger
  • Loading branch information
antalszava committed Nov 2, 2021
1 parent e96610f commit 66f7cff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 25 deletions.
28 changes: 7 additions & 21 deletions .github/workflows/demo_diff_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,59 +97,45 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
ref: master
# We checkout a dedicated unprotected branch and store the output of
# the checker there
ref: demo_output_comparison

- name: Create dev dir
run: mkdir /tmp/dev/

- name: Display structure of downloaded files
run: ls -R
working-directory: /tmp/dev/

- uses: actions/download-artifact@v2
with:
name: built-website-dev
path: /tmp/dev/

- name: Display structure of downloaded files
run: ls -R
working-directory: /tmp/dev/

- name: Create master dir
run: mkdir /tmp/master/

- name: Display structure of downloaded files
run: ls -R
working-directory: /tmp/master/

- uses: actions/download-artifact@v2
with:
name: built-website-master
path: /tmp/master/

- name: Display structure of downloaded files
run: ls -R
working-directory: /tmp/master/

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7

- name: Display structure of downloaded files
- name: Update the output file
run: |
git config user.name "QML demo checker Bot"
git config user.email "<>"
pip install pytz
python .github/workflows/generate_diffs.py
mv demo_diffs.md .github/workflows/demo_output_results
git add .github/workflows/demo_output_results/demo_diffs.md
mv demo_diffs.md demo_checker
git add demo_checker/demo_diffs.md
git commit -m "Update the demonstration differences found"
git push
- uses: actions/upload-artifact@v2
with:
name: demo_diffs
path: |
demo_diffs.md
demo_checker/demo_diffs.md
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--find-links https://download.pytorch.org/whl/torch_stable.html
appdirs==1.4.4
autograd==1.3
numpy==1.18.5
numpy==1.19.2
numba==0.53.1
networkx==2.5.1
nlopt==2.6.2
Expand All @@ -27,10 +27,10 @@ sphinx-sitemap
pypandoc==1.5
sphinx_gallery==0.9.0
seaborn==0.10.1
tensorflow==2.3.1
tensorflow==2.6.0
toml==0.10.2
torch==1.9.0+cpu
torchvision==0.10.0+cpu
torch==1.10.0+cpu
torchvision==0.11.1+cpu
dask[delayed]==2.10.1
scikit-learn==0.23.2
pyparsing==2.4.7
Expand Down

0 comments on commit 66f7cff

Please sign in to comment.