File tree Expand file tree Collapse file tree 6 files changed +95
-114
lines changed
jupyterlab-extension/.github/workflows Expand file tree Collapse file tree 6 files changed +95
-114
lines changed Original file line number Diff line number Diff line change
1
+ name : pytest
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+ - name : Set up Python 3.8
15
+ uses : actions/setup-python@v4
16
+ with :
17
+ python-version : 3.8
18
+ cache : poetry
19
+ cache-dependency-path : poetry.lock
20
+ - name : Install webdriver and poetry
21
+ run : |
22
+ sudo apt-get update && sudo apt-get install firefox-geckodriver
23
+ pip install --upgrade pip && pip install --no-cache-dir poetry
24
+ poetry config virtualenvs.in-project false
25
+ poetry config virtualenvs.path ~/.virtualenvs
26
+ - name : Install dependencies
27
+ run : poetry install -E server -E fermi
28
+ if : steps.cache.outputs.cache-hit != 'true'
29
+ - name : Test with pytest
30
+ env :
31
+ PERCY_TOKEN : ${{ secrets.PERCY_TOKEN }}
32
+ run : |
33
+ poetry run pytest --color=yes --webdriver Firefox --headless crystal_toolkit/apps/examples/tests/
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : pytest_and_docs
2
+
3
+ on : [release, workflow_dispatch]
4
+
5
+ jobs :
6
+ build :
7
+ runs-on : ubuntu-latest
8
+
9
+ steps :
10
+ - uses : actions/checkout@v3
11
+ - name : Set up Python 3.8
12
+ uses : actions/setup-python@v4
13
+ with :
14
+ python-version : 3.8
15
+ - name : Install webdriver and poetry
16
+ run : |
17
+ sudo apt-get update && sudo apt-get install firefox-geckodriver
18
+ pip install --upgrade pip && pip install --no-cache-dir poetry
19
+ poetry config virtualenvs.in-project false
20
+ poetry config virtualenvs.path ~/.virtualenvs
21
+ - name : Install dependencies
22
+ run : poetry install -E server -E fermi
23
+ if : steps.cache.outputs.cache-hit != 'true'
24
+ - name : Build new docs
25
+ run : |
26
+ git config --global user.name 'Matthew Horton'
27
+ git config --global user.email '[email protected] '
28
+ git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
29
+ git checkout "${GITHUB_REF:11}"
30
+ cd docs_rst
31
+ poetry run make html
32
+ - name : Commit new docs
33
+ run : |
34
+ git add -A
35
+ git diff-index --quiet HEAD || git commit -m "Automated doc build"
36
+ git push
37
+ continue-on-error : true
38
+ - name : Test with pytest
39
+ env :
40
+ PERCY_TOKEN : ${{ secrets.PERCY_TOKEN }}
41
+ run : |
42
+ poetry run pytest --color=yes --webdriver Firefox --headless crystal_toolkit/apps/examples/tests/
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
name : release
2
2
3
- on :
4
- workflow_dispatch
3
+ on : workflow_dispatch
5
4
6
5
jobs :
7
6
deploy :
8
-
9
7
runs-on : ubuntu-latest
10
8
11
9
steps :
12
- - uses : actions/checkout@v2
13
- with :
14
- ref : main
15
- fetch-depth : 2
16
- - name : Set up Python 3.7
17
- uses : actions/setup-python@v1
18
- with :
19
- python-version : 3.7
20
- - name : Install dependencies
21
- run : |
22
- pip install --upgrade pip && pip install --no-cache-dir poetry
23
- poetry install -E server -E fermi
24
- - name : Build and publish
25
- run : |
26
- poetry build
27
- poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
28
- poetry publish
10
+ - uses : actions/checkout@v2
11
+ with :
12
+ ref : main
13
+ fetch-depth : 2
14
+ - name : Set up Python 3.7
15
+ uses : actions/setup-python@v4
16
+ with :
17
+ python-version : 3.7
18
+ - name : Install dependencies
19
+ run : |
20
+ pip install --upgrade pip && pip install --no-cache-dir poetry
21
+ poetry install -E server -E fermi
22
+ - name : Build and publish
23
+ run : |
24
+ poetry build
25
+ poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
26
+ poetry publish
Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ jobs:
13
13
- name : Checkout
14
14
uses : actions/checkout@v2
15
15
- name : Install node
16
- uses : actions/setup-node@v1
16
+ uses : actions/setup-node@v3
17
17
with :
18
18
node-version : ' 10.x'
19
19
- name : Install Python
20
- uses : actions/setup-python@v2
20
+ uses : actions/setup-python@v4
21
21
with :
22
22
python-version : ' 3.7'
23
23
architecture : ' x64'
You can’t perform that action at this time.
0 commit comments