-
Notifications
You must be signed in to change notification settings - Fork 429
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
126 changed files
with
5,557 additions
and
940 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,3 +117,45 @@ jobs: | |
if: ${{ matrix.dependencies == 'core,optional' }} | ||
run: | | ||
hatch run +py=${{ matrix.python-version }} test-optional:test -v tests/ -k "not test_cli" --durations=10 | ||
# Only run coverage on `main` so it is not blocking | ||
test_coverage: | ||
needs: changes | ||
if: ${{ needs.changes.outputs.backend == 'true' && github.ref == 'refs/heads/main' && github.event_name == 'push' }} | ||
name: Test coverage | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
steps: | ||
- name: 🛑 Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: 🥚 Install Hatch | ||
uses: pypa/hatch@install | ||
|
||
# This step is needed since some of our tests rely on the index.html file | ||
- name: Create assets directory, copy over index.html | ||
run: | | ||
mkdir -p marimo/_static/assets | ||
cp frontend/index.html marimo/_static/index.html | ||
cp frontend/public/favicon.ico marimo/_static/favicon.ico | ||
- name: Test with optional dependencies | ||
run: | | ||
hatch run +py=3.12 test-optional:test -v tests/ -k "not test_cli" --durations=10 \ | ||
--cov=marimo --junitxml=junit.xml -o junit_family=legacy | ||
# Only upload coverage on `main` so it is not blocking | ||
# and only on `3.12`, `ubuntu-latest`, with optional deps since it is mostly duplicate | ||
# coverage from the other matrix jobs. | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v5 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
- name: Upload test results to Codecov | ||
if: ${{ !cancelled() }} | ||
uses: codecov/test-results-action@v1 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.