Skip to content

Commit

Permalink
Add doc to the test helper
Browse files Browse the repository at this point in the history
Add - uses: browser-actions/setup-geckodriver@latest

test
  • Loading branch information
unkcpz committed Nov 22, 2022
1 parent dcfeae9 commit e1530d7
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/di.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
tag: [latest]
browser: [Chrome, Firefox]
python-version: ['3.8', '3.10']
firefox: ['84.0']
fail-fast: false

runs-on: ubuntu-latest
timeout-minutes: 60

steps:

- name: Check out app
uses: actions/checkout@v2

Expand All @@ -44,5 +44,16 @@ jobs:
run: |
pip install -U -r requirements_test.txt
- name: Set jupyter token env
run: echo "JUPYTER_TOKEN=$(openssl rand -hex 32)" >> $GITHUB_ENV

- uses: browser-actions/setup-firefox@latest
with:
firefox-version: ${{ matrix.firefox }}
run: which firefox

- name: Run pytest
run: TAG=${{ matrix.tag }} JUPYTER_TOKEN=$(openssl rand -hex 32) pytest --driver ${{ matrix.browser }}
run: |
pytest --driver ${{ matrix.browser }}
env:
TAG: ${{ matrix.tag }}
Binary file added chromedriver_linux64.zip
Binary file not shown.
7 changes: 0 additions & 7 deletions qe.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,6 @@
" \n",
"display(output)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
5 changes: 5 additions & 0 deletions tests/helper_dep_requirements.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/usr/bin/env python3

"""This helper script is for temporarily remove the
`aiidalab-qe-workchain` package from dependencies list so that
in the test it will not use the remote released source.
"""

from configparser import ConfigParser

cf = ConfigParser()
Expand Down

0 comments on commit e1530d7

Please sign in to comment.