Skip to content

Commit 19c4e8c

Browse files
committed
Move py-shiny testing to it's own job, away from pytest.yaml
1 parent d1ea0e0 commit 19c4e8c

File tree

2 files changed

+52
-50
lines changed

2 files changed

+52
-50
lines changed

.github/workflows/pytest.yaml

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -39,56 +39,6 @@ jobs:
3939
- name: pyright, flake8, black and isort
4040
run: |
4141
make check
42-
shiny:
43-
runs-on: ${{ matrix.os }}
44-
strategy:
45-
matrix:
46-
python-version: ["3.12"]
47-
os: [ubuntu-latest]
48-
fail-fast: false
49-
defaults:
50-
run:
51-
shell: bash
52-
53-
steps:
54-
- name: Set up Python ${{ matrix.python-version }}
55-
uses: actions/setup-python@v5
56-
with:
57-
python-version: ${{ matrix.python-version }}
58-
59-
- uses: actions/checkout@v4
60-
with:
61-
path: htmltools
62-
- uses: actions/checkout@v4
63-
with:
64-
repository: posit-dev/py-shiny
65-
path: shiny
66-
fetch-depth: 0
67-
68-
- name: Install dev Shiny
69-
run: |
70-
python -m pip install --upgrade pip
71-
cd shiny
72-
pip install -e ".[dev,test]"
73-
74-
- name: Check dev Shiny w/ regular Htmltools
75-
continue-on-error: true
76-
run: |
77-
cd shiny
78-
make test check
79-
80-
- name: Install dev htmltools dependencies
81-
run: |
82-
cd htmltools
83-
python -m pip install --upgrade pip
84-
pip install -e ".[dev,test]"
85-
make install
86-
87-
- name: Check dev Shiny w/ dev Htmltools
88-
run: |
89-
cd shiny
90-
make test check
91-
9242
deploy:
9343
name: "Deploy to PyPI"
9444
runs-on: ubuntu-latest

.github/workflows/shiny.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Bleeding Edge Shiny
2+
3+
on:
4+
push:
5+
branches: "shiny-**"
6+
pull_request:
7+
8+
jobs:
9+
shiny:
10+
runs-on: ubuntu-latest
11+
defaults:
12+
run:
13+
shell: bash
14+
15+
steps:
16+
- name: Set up Python 3.12
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.12"
20+
21+
- uses: actions/checkout@v4
22+
with:
23+
path: htmltools
24+
- uses: actions/checkout@v4
25+
with:
26+
repository: posit-dev/py-shiny
27+
path: shiny
28+
fetch-depth: 0 # Required for shiny version
29+
30+
- name: Install py-shiny@main
31+
run: |
32+
python -m pip install --upgrade pip
33+
cd shiny
34+
pip install -e ".[dev,test]"
35+
36+
- name: Check py-shiny@main w/ PyPi Htmltools (This should pass)
37+
continue-on-error: true
38+
run: |
39+
cd shiny
40+
make test check
41+
42+
- name: Install dev py-htmltools htmltools dependencies
43+
run: |
44+
cd htmltools
45+
python -m pip install --upgrade pip
46+
pip install -e ".[dev,test]"
47+
make install
48+
49+
- name: Check py-shiny@main w/ dev py-htmltools
50+
run: |
51+
cd shiny
52+
make test check

0 commit comments

Comments
 (0)