-
Notifications
You must be signed in to change notification settings - Fork 9
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
221 changed files
with
2,425 additions
and
479 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
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,117 @@ | ||
name: "inngest_encryption" | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
tags: | ||
- "*" | ||
pull_request: | ||
paths: | ||
- "**/*.py" | ||
- ".github/**" | ||
- "Makefile" | ||
- "constraints.txt" | ||
- "pyproject.toml" | ||
- "pytest.ini" | ||
- "ruff.toml" | ||
|
||
jobs: | ||
itest: | ||
runs-on: "ubuntu-latest" | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.12"] | ||
timeout-minutes: 2 | ||
steps: | ||
- uses: "actions/checkout@v2" | ||
- name: "Set up Python ${{ matrix.python-version }}" | ||
uses: "actions/setup-python@v2" | ||
with: | ||
python-version: "${{ matrix.python-version }}" | ||
- name: "Install" | ||
run: "make install" | ||
- name: "Integration test" | ||
run: "make itest" | ||
working-directory: "./pkg/inngest_encryption" | ||
|
||
lint: | ||
runs-on: "ubuntu-latest" | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.12"] | ||
steps: | ||
- uses: "actions/checkout@v2" | ||
- name: "Set up Python ${{ matrix.python-version }}" | ||
uses: "actions/setup-python@v2" | ||
with: | ||
python-version: "${{ matrix.python-version }}" | ||
- name: "Install" | ||
run: "make install" | ||
- name: "Lint" | ||
run: "make lint" | ||
working-directory: "./pkg/inngest_encryption" | ||
|
||
publish-pypi: | ||
runs-on: "ubuntu-latest" | ||
needs: | ||
- "itest" | ||
- "lint" | ||
- "type-check" | ||
- "utest" | ||
|
||
# Only publish tagged versions. | ||
# TODO: Add a check to ensure that the git tag matches the version. | ||
if: "startsWith(github.ref, 'refs/tags/inngest_encryption@')" | ||
permissions: | ||
id-token: write | ||
strategy: | ||
matrix: | ||
python-version: ["3.9"] | ||
steps: | ||
- uses: "actions/checkout@v2" | ||
- name: "Set up Python ${{ matrix.python-version }}" | ||
uses: "actions/setup-python@v2" | ||
with: | ||
python-version: "${{ matrix.python-version }}" | ||
- name: "Install" | ||
run: "make install" | ||
- name: "Install" | ||
run: "make build" | ||
working-directory: "./pkg/inngest_encryption" | ||
- name: "Upload package to PyPI" | ||
uses: "pypa/gh-action-pypi-publish@release/v1" | ||
|
||
type-check: | ||
runs-on: "ubuntu-latest" | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.12"] | ||
steps: | ||
- uses: "actions/checkout@v2" | ||
- name: "Set up Python ${{ matrix.python-version }}" | ||
uses: "actions/setup-python@v2" | ||
with: | ||
python-version: "${{ matrix.python-version }}" | ||
- name: "Install" | ||
run: "make install" | ||
- name: "Type check" | ||
run: "make type-check" | ||
working-directory: "./pkg/inngest_encryption" | ||
|
||
utest: | ||
runs-on: "ubuntu-latest" | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.12"] | ||
steps: | ||
- uses: "actions/checkout@v2" | ||
- name: "Set up Python ${{ matrix.python-version }}" | ||
uses: "actions/setup-python@v2" | ||
with: | ||
python-version: "${{ matrix.python-version }}" | ||
- name: "Install" | ||
run: "make install" | ||
- name: "Unit test" | ||
run: "make utest" | ||
working-directory: "./pkg/inngest_encryption" |
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,66 @@ | ||
name: "other" | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
tags: | ||
- "*" | ||
pull_request: | ||
paths: | ||
- "**/*.py" | ||
- ".github/**" | ||
- "Makefile" | ||
- "constraints.txt" | ||
- "pyproject.toml" | ||
- "pytest.ini" | ||
- "ruff.toml" | ||
|
||
jobs: | ||
format-check: | ||
runs-on: "ubuntu-latest" | ||
strategy: | ||
matrix: | ||
python-version: ["3.9"] | ||
steps: | ||
- uses: "actions/checkout@v2" | ||
- name: "Set up Python ${{ matrix.python-version }}" | ||
uses: "actions/setup-python@v2" | ||
with: | ||
python-version: "${{ matrix.python-version }}" | ||
- name: "Install" | ||
run: "make install" | ||
- name: "Format check" | ||
run: "make format-check" | ||
|
||
lint: | ||
runs-on: "ubuntu-latest" | ||
strategy: | ||
matrix: | ||
python-version: ["3.9"] | ||
steps: | ||
- uses: "actions/checkout@v2" | ||
- name: "Set up Python ${{ matrix.python-version }}" | ||
uses: "actions/setup-python@v2" | ||
with: | ||
python-version: "${{ matrix.python-version }}" | ||
- name: "Install" | ||
run: "make install" | ||
- name: "Lint" | ||
run: "make lint" | ||
|
||
type-check: | ||
runs-on: "ubuntu-latest" | ||
strategy: | ||
matrix: | ||
python-version: ["3.9"] | ||
steps: | ||
- uses: "actions/checkout@v2" | ||
- name: "Set up Python ${{ matrix.python-version }}" | ||
uses: "actions/setup-python@v2" | ||
with: | ||
python-version: "${{ matrix.python-version }}" | ||
- name: "Install" | ||
run: "make install" | ||
- name: "Type check" | ||
run: "make type-check" |
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,19 @@ | ||
export MYPYPATH=../pkg/inngest:../pkg/inngest_encryption:../pkg/test_core | ||
|
||
.PHONY: check-venv | ||
check-venv: | ||
@if [ -z "$${CI}" ] && [ -z "$${VIRTUAL_ENV}" ]; then \ | ||
echo "virtual environment is not activated"; \ | ||
exit 1; \ | ||
fi | ||
|
||
.PHONY: lint | ||
lint: check-venv | ||
@ruff check . | ||
|
||
.PHONY: type-check | ||
type-check: check-venv | ||
@mypy --config-file=../mypy.ini ./digital_ocean | ||
@mypy --config-file=../mypy.ini ./fast_api | ||
@mypy --config-file=../mypy.ini ./flask | ||
@mypy --config-file=../mypy.ini ./tornado |
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.