-
-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into event-target-checked-does-not-exist-for-chec…
…kbox-inputs
- Loading branch information
Showing
46 changed files
with
970 additions
and
776 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,14 +1,14 @@ | ||
<sub>By submitting this pull request you agree that all contributions to this project are made under the MIT license.</sub> | ||
## Description | ||
|
||
## Issues | ||
<!-- A summary of the changes. --> | ||
|
||
<!-- Describe or link the issues this change resolves --> | ||
|
||
## Solution | ||
## Checklist | ||
|
||
<!-- Describe how these changes resolve the aforementioned issues --> | ||
Please update this checklist as you complete each item: | ||
|
||
## Checklist | ||
- [ ] Tests have been developed for bug fixes or new functionality. | ||
- [ ] The changelog has been updated, if necessary. | ||
- [ ] Documentation has been updated, if necessary. | ||
- [ ] GitHub Issues closed by this PR have been linked. | ||
|
||
- [ ] Tests have been included for all bug fixes or added functionality. | ||
- [ ] The `changelog.rst` has been updated with any significant changes. | ||
<sub>By submitting this pull request I agree that all contributions comply with this project's open source license(s).</sub> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"recommendations": [ | ||
"wholroyd.jinja", | ||
"esbenp.prettier-vscode", | ||
"ms-python.vscode-pylance", | ||
"ms-python.python", | ||
"charliermarsh.ruff", | ||
"dbaeumer.vscode-eslint", | ||
"ms-python.black-formatter", | ||
"ms-python.mypy-type-checker" | ||
] | ||
} |
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,12 +1,14 @@ | ||
FROM python:3.9 | ||
|
||
WORKDIR /app/ | ||
|
||
RUN apt-get update | ||
|
||
# Install NodeJS | ||
# -------------- | ||
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - | ||
RUN apt-get install -y build-essential nodejs npm | ||
RUN npm install -g [email protected] | ||
RUN curl -SLO https://deb.nodesource.com/nsolid_setup_deb.sh | ||
RUN chmod 500 nsolid_setup_deb.sh | ||
RUN ./nsolid_setup_deb.sh 20 | ||
RUN apt-get install nodejs -y | ||
|
||
# Install Poetry | ||
# -------------- | ||
|
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.