-
-
Notifications
You must be signed in to change notification settings - Fork 544
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
8 changed files
with
498 additions
and
565 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,4 +1,4 @@ | ||
FROM python:3.7-alpine | ||
FROM python:3.8-alpine | ||
|
||
RUN pip install httpx==0.7.* | ||
|
||
|
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,72 +1,70 @@ | ||
name: 🦺 Type checkers tests | ||
|
||
concurrency: | ||
group: type-checkers-${{ github.head_ref || github.run_id }}-type-checkers | ||
cancel-in-progress: true | ||
group: type-checkers-${{ github.head_ref || github.run_id }}-type-checkers | ||
cancel-in-progress: true | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- "strawberry/**" | ||
- "tests/mypy/**" | ||
- "tests/pyright/**" | ||
- "pyproject.toml" | ||
- "poetry.lock" | ||
- ".github/workflows/test-type-checkers.yml" | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- "strawberry/**" | ||
- "tests/mypy/**" | ||
- "tests/pyright/**" | ||
- "pyproject.toml" | ||
- "poetry.lock" | ||
- ".github/workflows/test-type-checkers.yml" | ||
|
||
jobs: | ||
mypy: | ||
strategy: | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10"] | ||
mypy: | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11"] | ||
|
||
name: Mypy on Python ${{ matrix.python-version }} | ||
runs-on: ubuntu-latest | ||
name: Mypy on Python ${{ matrix.python-version }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: pipx install poetry | ||
- uses: actions/setup-python@v4 | ||
id: setup-python | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: "poetry" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: pipx install poetry | ||
- uses: actions/setup-python@v4 | ||
id: setup-python | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: "poetry" | ||
|
||
- run: poetry env use ${{ matrix.python-version }} | ||
- run: poetry install | ||
if: steps.setup-python.outputs.cache-hit != 'true' | ||
- run: poetry env use ${{ matrix.python-version }} | ||
- run: poetry install | ||
if: steps.setup-python.outputs.cache-hit != 'true' | ||
|
||
- name: pytest | ||
run: | ||
poetry run pytest tests/mypy | ||
- name: pytest | ||
run: poetry run pytest tests/mypy | ||
|
||
pyright: | ||
strategy: | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10"] | ||
pyright: | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11"] | ||
|
||
name: Pyright on Python ${{ matrix.python-version }} | ||
runs-on: ubuntu-latest | ||
name: Pyright on Python ${{ matrix.python-version }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: pipx install poetry | ||
- uses: actions/setup-python@v4 | ||
id: setup-python | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: "poetry" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: pipx install poetry | ||
- uses: actions/setup-python@v4 | ||
id: setup-python | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: "poetry" | ||
|
||
- uses: actions/setup-node@v2 | ||
- run: npm install -g --no-package-lock --no-save pyright | ||
- uses: actions/setup-node@v2 | ||
- run: npm install -g --no-package-lock --no-save pyright | ||
|
||
- run: poetry env use ${{ matrix.python-version }} | ||
- run: poetry install | ||
if: steps.setup-python.outputs.cache-hit != 'true' | ||
- run: poetry env use ${{ matrix.python-version }} | ||
- run: poetry install | ||
if: steps.setup-python.outputs.cache-hit != 'true' | ||
|
||
- name: pytest | ||
run: | ||
poetry run pytest tests/pyright | ||
- name: pytest | ||
run: poetry run pytest tests/pyright |
Oops, something went wrong.