-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gather more python and JS coverage (#124)
- Loading branch information
Showing
68 changed files
with
3,411 additions
and
1,688 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 |
---|---|---|
|
@@ -7,12 +7,17 @@ on: | |
branches: [master] | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
PYTHONIOENCODING: utf-8 | ||
PYTHONUNBUFFERED: '1' | ||
PIP_DISABLE_PIP_VERSION_CHECK: '1' | ||
CACHE_EPOCH: 6 | ||
ATEST_RETRIES: 2 | ||
ALL_PY_COV_FAIL_UNDER: 69 | ||
|
||
jobs: | ||
build: | ||
|
@@ -21,7 +26,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.32.1 | ||
pixi-version: v0.34.0 | ||
cache: true | ||
environments: build | ||
cache-key: job-build | ||
|
@@ -47,7 +52,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.32.1 | ||
pixi-version: v0.34.0 | ||
cache: true | ||
environments: build lint | ||
cache-key: job-lint | ||
|
@@ -69,7 +74,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.32.1 | ||
pixi-version: v0.34.0 | ||
cache: true | ||
environments: build check docs lite | ||
cache-key: job-lint | ||
|
@@ -103,14 +108,26 @@ jobs: | |
exclude: | ||
- { vm: macos-13, task: test } | ||
- { vm: macos-latest, task: test-oldest } | ||
include: | ||
- { vm: macos-13, atest-args: '' } | ||
- { vm: macos-latest, atest-args: '' } | ||
- { vm: ubuntu-latest, atest-args: '' } | ||
- { vm: windows-latest, atest-args: '--exclude ci:skip-win' } | ||
env: | ||
ATEST_ARGS: ${{ matrix.atest-args }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.32.1 | ||
pixi-version: v0.34.0 | ||
cache: true | ||
environments: a${{ matrix.task }} i${{ matrix.task }} u${{ matrix.task }} | ||
cache-key: job-${{ matrix.task }} | ||
- if: matrix.task == 'test' | ||
uses: actions/cache@v4 | ||
with: | ||
path: node_modules | ||
key: ${{ env.CACHE_EPOCH }}-${{ hashFiles('yarn.lock') }}-node-modules | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: ipyelk-${{ github.run_number }}-dist | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
*** Settings *** | ||
Documentation Keywords for working with browser coverage data | ||
Library OperatingSystem | ||
Library SeleniumLibrary | ||
Library uuid | ||
|
||
|
||
*** Keywords *** | ||
Get Next Coverage File | ||
[Documentation] Get a random filename. | ||
${uuid} = UUID1 | ||
RETURN ${uuid.__str__()} | ||
|
||
Capture Page Coverage | ||
[Documentation] Fetch coverage data from the browser. | ||
[Arguments] ${name}=${EMPTY} | ||
IF not '''${name}''' | ||
${name} = Get Next Coverage File | ||
END | ||
${cov_json} = Execute Javascript | ||
... return window.__coverage__ && JSON.stringify(window.__coverage__, null, 2) | ||
IF ${cov_json} | ||
Create File ${OUTPUT DIR}${/}jscov${/}${name}.json ${cov_json} | ||
Execute Javascript window.__coverage__ = {} | ||
ELSE | ||
Log No browser coverage captured ERROR | ||
END |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ widgets | |
tools | ||
loaders | ||
pipes | ||
schema | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
JSON Schema | ||
=========== | ||
|
||
.. jsonschema:: ../../src/ipyelk/schema/elkschema.json |
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ channels: | |
- conda-forge | ||
- nodefaults | ||
dependencies: | ||
- pixi ==0.32.1 | ||
- pixi ==0.34.0 |
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.