A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
test: add pytest-timeout in cli test (#3482)
Myles Scolnick372d928db1e5
diff --git a/.github/workflows/test_cli.yaml b/.github/workflows/test_cli.yamlindex 50a6b36594..0ac2596200 100644--- a/.github/workflows/test_cli.yaml+++ b/.github/workflows/test_cli.yaml@@ -9,7 +9,6 @@ env:TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}TURBO_TEAM: marimoMARIMO_SKIP_UPDATE_CHECK: 1-jobs:changes:runs-on: ubuntu-latest@@ -32,7 +31,7 @@ jobs:if: ${{ needs.changes.outputs.cli == 'true' }}name: Build marimo wheelruns-on: ubuntu-latest- timeout-minutes: 3 # 2024-01-18 avg: 0.8m max: 1.0m+ timeout-minutes: 3 # 2024-01-18 avg: 0.8m max: 1.0mdefaults:run:shell: bash@@ -100,10 +99,9 @@ jobs:if: ${{ needs.changes.outputs.cli == 'true' }}name: Tests CLI on ${{ matrix.os }} ${{ matrix.python-version }}runs-on: ${{ matrix.os }}- timeout-minutes: 10 # 2024-01-18 avg: 2.5m max: 4.5m+ timeout-minutes: 10 # 2024-01-18 avg: 2.5m max: 4.5mstrategy:matrix:- # TODO(akshayka): consider adding 3.8, 3.9python-version: ['3.12']os: [ubuntu-latest, macos-latest, windows-latest]@@ -111,16 +109,16 @@ jobs:- name: 🛑 Cancel Previous Runsuses: styfle/[email protected]- uses: actions/checkout@v4- - name: Set up Python ${{ matrix.python-version }}- uses: actions/setup-python@v5++ - name: 🐍 Setup uv+ uses: astral-sh/setup-uv@v5with:+ enable-cache: truepython-version: ${{ matrix.python-version }}- cache: 'pip'- name: Install Python depsrun: |- python -m pip install --upgrade pip- pip install pytest pytest-asyncio nbformat+ uv pip install pytest pytest-asyncio pytest-timeout nbformat- name: Download wheeluses: actions/download-artifact@v4@@ -129,34 +127,30 @@ jobs:- name: Install marimoshell: bash- run: pip install marimo*whl+ run: uv pip install marimo*whl- name: Test CLIshell: bashrun: |- pytest -v tests/_cli/test_cli* --maxfail=2+ uv run --no-project pytest -v tests/_cli/test_cli* --maxfail=2test_examples:needs: [changes, build_wheel]if: ${{ needs.changes.outputs.cli == 'true' }}name: Tests examples and smoke_testsruns-on: ubuntu-latest- timeout-minutes: 3 # 2024-01-18 avg: 0.3m max: 0.5m+ timeout-minutes: 3 # 2024-01-18 avg: 0.3m max: 0.5msteps:- name: 🛑 Cancel Previous Runsuses: styfle/[email protected]- uses: actions/checkout@v4- - name: Set up Python 3.12- uses: actions/setup-python@v5- with:- python-version: '3.12'- cache: 'pip'- name: 🐍 Setup uv- uses: yezz123/setup-uv@v4+ uses: astral-sh/setup-uv@v5with:- uv-venv: marimo-venv+ enable-cache: true+ python-version: 3.12- name: Download wheeluses: actions/download-artifact@v4@@ -166,10 +160,10 @@ jobs:- name: Install Python depsrun: |uv pip install pytest pytest-asyncio- uv pip install ./marimo*whl+ uv pip install marimo*whl- name: Test examplesshell: bash- run: pytest -v -s tests/_smoke_tests/run_all.py+ run: uv run pytest -v -s tests/_smoke_tests/run_all.py# TODO(msconick) remove continue-on-error when all tests passcontinue-on-error: true