Skip to content

Commit 32ca6a6

Browse files
author
perovskite
committed
Add conda
- Add conda to create an environment not using the OS Python.
1 parent 214baea commit 32ca6a6

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/ipywidgets-bokeh-ci.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,16 @@ jobs:
1717
os: [ubuntu-latest, macos-latest, windows-latest]
1818
node-version: [18.x]
1919

20+
defaults:
21+
run:
22+
shell: bash -el {0}
23+
2024
steps:
25+
- name: Set up conda and install base
26+
uses: conda-incubator/setup-miniconda@v2
27+
with:
28+
auto-update-conda: true
29+
2130
- name: Checkout the repository
2231
uses: actions/checkout@v3
2332

@@ -27,53 +36,45 @@ jobs:
2736
node-version: ${{ matrix.node-version }}
2837

2938
- name: Upgrade npm
30-
shell: bash
3139
run: |
3240
npm install --location=global npm
3341
3442
- name: Install JavaScript dependencies
3543
working-directory: ./ipywidgets_bokeh
36-
shell: bash
3744
run: |
3845
npm ci --no-progress
3946
4047
- name: Build ipywidgets-bokeh JavaScript
4148
working-directory: ./ipywidgets_bokeh
42-
shell: bash
4349
run: |
4450
npm run build
4551
4652
- name: Run JavaScript tests
4753
if: success() || failure()
4854
working-directory: ./ipywidgets_bokeh
49-
shell: bash
5055
run: |
5156
npm run test
5257
5358
- name: Lint the JavaScript codebase
5459
if: success() || failure()
5560
working-directory: ./ipywidgets_bokeh
56-
shell: bash
5761
run: |
5862
npm run lint
5963
60-
- name: Install dev Python dependencies
64+
- name: Install dev Python dependencies & Playwright browsers
6165
if: success() || failure()
62-
shell: bash
6366
run: |
6467
python -m pip install --upgrade pip
6568
python -m pip install --editable .[dev]
6669
python -m playwright install --with-deps
6770
6871
- name: Run Playwright & Python tests
6972
if: success() || failure()
70-
shell: bash
7173
run: |
7274
pytest
7375
7476
- name: Check repository status
7577
if: success() || failure()
76-
shell: bash
7778
run: |
7879
OUTPUT=$(git status --short .)
7980
if [[ ! -z "$OUTPUT" ]]; then echo $OUTPUT; exit 1; fi

0 commit comments

Comments
 (0)