Skip to content

Commit

Permalink
chore: remove eol python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
devkral committed Jun 30, 2023
1 parent be5f8c6 commit c29c24e
Show file tree
Hide file tree
Showing 8 changed files with 498 additions and 565 deletions.
2 changes: 1 addition & 1 deletion .github/release-check-action/Dockerfile
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.*

Expand Down
108 changes: 53 additions & 55 deletions .github/workflows/test-type-checkers.yml
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
Loading

0 comments on commit c29c24e

Please sign in to comment.