-
Notifications
You must be signed in to change notification settings - Fork 1
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
12 changed files
with
172 additions
and
120 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 was deleted.
Oops, something went wrong.
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,45 @@ | ||
name: Poetry Composite Action | ||
description: Set Poetry and Python | ||
|
||
inputs: | ||
poetry-version: | ||
required: true | ||
type: string | ||
|
||
poetry-virtualenv: | ||
required: false | ||
type: boolean | ||
default: true | ||
|
||
poetry-virtualenvs-in-project: | ||
required: false | ||
type: boolean | ||
default: true | ||
|
||
python-version: | ||
required: true | ||
type: string | ||
|
||
runs: | ||
using: "composite" | ||
|
||
steps: | ||
|
||
# Downloads a copy of the code in your repository before running CI tests | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
|
||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
version: ${{ inputs.poetry-version }} | ||
virtualenvs-create: ${{ inputs.poetry-virtualenv }} | ||
virtualenvs-in-project: ${{ inputs.poetry-virtualenvs-in-project }} | ||
|
||
- name: Install project | ||
run: poetry install --no-root --no-interaction | ||
shell: bash |
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,34 @@ | ||
name: Integration Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- dev | ||
pull_request: | ||
branches: | ||
- master | ||
- dev | ||
|
||
workflow_call: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.10.13', '3.11.5' ] | ||
|
||
env: | ||
POETRY_NO_INTERACTION: 1 | ||
PIP_DEFAULT_TIMEOUT: 100 | ||
|
||
steps: | ||
- name: Set up Python & Poetry | ||
uses: sensodevices/async-sendgrid/.github/actions/build_async_sendgrid@master | ||
with: | ||
poetry-version: '1.6.1' | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Execute Pytest | ||
run: poetry run python -m pytest --cov=async-sendgrid tests/integration |
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,31 +1,29 @@ | ||
name: Linting | ||
|
||
on: | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
- dev | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
- master | ||
- dev | ||
workflow_call: | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Downloads a copy of the code in your repository before running CI tests | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
- name: Set up Python & Poetry | ||
uses: sensodevices/async-sendgrid/.github/actions/build_async_sendgrid@master | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Install flake8 | ||
run: pip install flake8 | ||
poetry-version: "1.6.1" | ||
python-version: "3.11.5" | ||
|
||
- name: Execute flake8 | ||
run: python -m flake8 async_sendgrid | ||
run: poetry run flake8 async-sendgrid |
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 |
---|---|---|
@@ -1,30 +1,28 @@ | ||
name: Typing | ||
|
||
on: | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
- dev | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
- master | ||
- dev | ||
|
||
workflow_call: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Downloads a copy of the code in your repository before running CI tests | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
- name: Set up Python & Poetry | ||
uses: sensodevices/async-sendgrid/.github/actions/build_async_sendgrid@master | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Install mypy and the required stubs | ||
run: | | ||
pip install mypy | ||
poetry-version: "1.6.1" | ||
python-version: "3.11.5" | ||
|
||
- name: Execute mypy | ||
run: python -m mypy async_sendgrid | ||
run: poetry run mypy async-sendgrid |
Oops, something went wrong.