-
-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial work on concurrent renders * concurrent renders * limit to 3.11 * fix docs * update changelog * simpler add_effect interface * improve docstring * better changelog description * effect function accepts stop event * simplify concurrent render process * test serial renders too * remove ready event * fix doc example * add docstrings * use function scope async fixtures * fix flaky test * rename config option * move effect kick-off into component did render * move effect start to back to layout render * try 3.x again * require tracerite 1.1.1 * fix docs build
- Loading branch information
Showing
21 changed files
with
685 additions
and
569 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 |
---|---|---|
@@ -1,59 +1,59 @@ | ||
name: hatch-run | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
job-name: | ||
required: true | ||
type: string | ||
hatch-run: | ||
required: true | ||
type: string | ||
runs-on-array: | ||
required: false | ||
type: string | ||
default: '["ubuntu-latest"]' | ||
python-version-array: | ||
required: false | ||
type: string | ||
default: '["3.x"]' | ||
node-registry-url: | ||
required: false | ||
type: string | ||
default: "" | ||
secrets: | ||
node-auth-token: | ||
required: false | ||
pypi-username: | ||
required: false | ||
pypi-password: | ||
required: false | ||
workflow_call: | ||
inputs: | ||
job-name: | ||
required: true | ||
type: string | ||
hatch-run: | ||
required: true | ||
type: string | ||
runs-on-array: | ||
required: false | ||
type: string | ||
default: '["ubuntu-latest"]' | ||
python-version-array: | ||
required: false | ||
type: string | ||
default: '["3.x"]' | ||
node-registry-url: | ||
required: false | ||
type: string | ||
default: "" | ||
secrets: | ||
node-auth-token: | ||
required: false | ||
pypi-username: | ||
required: false | ||
pypi-password: | ||
required: false | ||
|
||
jobs: | ||
hatch: | ||
name: ${{ format(inputs.job-name, matrix.python-version, matrix.runs-on) }} | ||
strategy: | ||
matrix: | ||
python-version: ${{ fromJson(inputs.python-version-array) }} | ||
runs-on: ${{ fromJson(inputs.runs-on-array) }} | ||
runs-on: ${{ matrix.runs-on }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "14.x" | ||
registry-url: ${{ inputs.node-registry-url }} | ||
- name: Pin NPM Version | ||
run: npm install -g [email protected] | ||
- name: Use Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Python Dependencies | ||
run: pip install hatch poetry | ||
- name: Run Scripts | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.node-auth-token }} | ||
PYPI_USERNAME: ${{ secrets.pypi-username }} | ||
PYPI_PASSWORD: ${{ secrets.pypi-password }} | ||
run: hatch run ${{ inputs.hatch-run }} | ||
hatch: | ||
name: ${{ format(inputs.job-name, matrix.python-version, matrix.runs-on) }} | ||
strategy: | ||
matrix: | ||
python-version: ${{ fromJson(inputs.python-version-array) }} | ||
runs-on: ${{ fromJson(inputs.runs-on-array) }} | ||
runs-on: ${{ matrix.runs-on }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "14.x" | ||
registry-url: ${{ inputs.node-registry-url }} | ||
- name: Pin NPM Version | ||
run: npm install -g [email protected] | ||
- name: Use Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Python Dependencies | ||
run: pip install hatch poetry | ||
- name: Run Scripts | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.node-auth-token }} | ||
PYPI_USERNAME: ${{ secrets.pypi-username }} | ||
PYPI_PASSWORD: ${{ secrets.pypi-password }} | ||
run: hatch run ${{ inputs.hatch-run }} |
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 |
---|---|---|
@@ -1,45 +1,48 @@ | ||
name: check | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
schedule: | ||
- cron: "0 0 * * 0" | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
schedule: | ||
- cron: "0 0 * * 0" | ||
|
||
jobs: | ||
test-py-cov: | ||
uses: ./.github/workflows/.hatch-run.yml | ||
with: | ||
job-name: "python-{0}" | ||
hatch-run: "test-py" | ||
lint-py: | ||
uses: ./.github/workflows/.hatch-run.yml | ||
with: | ||
job-name: "python-{0}" | ||
hatch-run: "lint-py" | ||
test-py-matrix: | ||
uses: ./.github/workflows/.hatch-run.yml | ||
with: | ||
job-name: "python-{0} {1}" | ||
hatch-run: "test-py --no-cov" | ||
runs-on-array: '["ubuntu-latest", "macos-latest", "windows-latest"]' | ||
python-version-array: '["3.9", "3.10", "3.11"]' | ||
test-docs: | ||
uses: ./.github/workflows/.hatch-run.yml | ||
with: | ||
job-name: "python-{0}" | ||
hatch-run: "test-docs" | ||
test-js: | ||
uses: ./.github/workflows/.hatch-run.yml | ||
with: | ||
job-name: "{1}" | ||
hatch-run: "test-js" | ||
lint-js: | ||
uses: ./.github/workflows/.hatch-run.yml | ||
with: | ||
job-name: "{1}" | ||
hatch-run: "lint-js" | ||
test-py-cov: | ||
uses: ./.github/workflows/.hatch-run.yml | ||
with: | ||
job-name: "python-{0}" | ||
hatch-run: "test-py" | ||
lint-py: | ||
uses: ./.github/workflows/.hatch-run.yml | ||
with: | ||
job-name: "python-{0}" | ||
hatch-run: "lint-py" | ||
test-py-matrix: | ||
uses: ./.github/workflows/.hatch-run.yml | ||
with: | ||
job-name: "python-{0} {1}" | ||
hatch-run: "test-py --no-cov" | ||
runs-on-array: '["ubuntu-latest", "macos-latest", "windows-latest"]' | ||
python-version-array: '["3.9", "3.10", "3.11"]' | ||
test-docs: | ||
uses: ./.github/workflows/.hatch-run.yml | ||
with: | ||
job-name: "python-{0}" | ||
hatch-run: "test-docs" | ||
# as of Dec 2023 lxml does have wheels for 3.12 | ||
# https://bugs.launchpad.net/lxml/+bug/2040440 | ||
python-version-array: '["3.11"]' | ||
test-js: | ||
uses: ./.github/workflows/.hatch-run.yml | ||
with: | ||
job-name: "{1}" | ||
hatch-run: "test-js" | ||
lint-js: | ||
uses: ./.github/workflows/.hatch-run.yml | ||
with: | ||
job-name: "{1}" | ||
hatch-run: "lint-js" |
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.