Skip to content

Commit

Permalink
Added proper testing infrastructure and first test
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Nov 13, 2024
1 parent 8e2a3dc commit b17d0b3
Show file tree
Hide file tree
Showing 14 changed files with 223 additions and 697 deletions.
29 changes: 2 additions & 27 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,9 @@ on:
push:

jobs:
test_convert:
test:
runs-on: ubuntu-latest
name: Python 3.12
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Set up dependencies
run: pip install playwright pytest-playwright solara[pytest] nbformat click pytest scipy astropy jdaviz
- name: Initialize playwright
run: playwright install
- name: Convert notebook to profiling script
run: python convert.py imviz-profile.ipynb imviz-profile.py
working-directory: ./automated
- name: Run profiling script
run: pytest imviz-profile.py -vs
working-directory: ./automated
test_main:
runs-on: ubuntu-latest
name: Python 3.12
name: jupyter-output-monitor
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand All @@ -40,9 +21,3 @@ jobs:
run: playwright install
- name: Run monitoring command
run: jupyter-output-monitor --notebook automated/imviz-profile.ipynb --headless
- name: Convert notebook to profiling script
run: python convert.py imviz-profile.ipynb imviz-profile.py
working-directory: ./automated
- name: Run profiling script
run: pytest imviz-profile.py -vs
working-directory: ./automated
Loading

0 comments on commit b17d0b3

Please sign in to comment.