Skip to content

Commit

Permalink
gha fight commit #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuyukai committed Jan 25, 2024
1 parent e3cff6b commit 81c1274
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 0 deletions.
85 changes: 85 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: CI

on:
push:
branches: [master]
pull_request: {}

jobs:
verify-types:
name: "Pyright Verify Types"
runs-on: "ubuntu-latest"

steps:
- name: "Checkout repository"
uses: "actions/checkout@v4"

- name: Load cached Poetry installation
id: cached-poetry
uses: actions/cache@v3
with:
path: ~/.local
key: poetry-0

- name: "Install Poetry"
if: steps.cached-poetry.outputs.cache-hit != 'true'
uses: "snok/install-poetry@v1"

- name: "Install Python 3.11"
uses: "actions/setup-python@v5"
with:
python-version: "3.11"
cache: "poetry"

- name: "Install project"
run: poetry install --all-extras --no-interaction --no-ansi

- name: "Run Pyright"
run: "poetry run pyright --verifytypes --ignoreexternal"

test-postgresql:
strategy:
fail-fast: false
matrix:
image: ["rabbitmq:latest"]

name: "Test on AMQP server ${{ matrix.image }}"
runs-on: ubuntu-latest

services:
amqp:
image: "${{ matrix.image }}"
ports:
- 5672

steps:
- name: "Checkout repository"
uses: "actions/checkout@v4"

- name: Load cached Poetry installation
id: cached-poetry
uses: actions/cache@v3
with:
path: ~/.local
key: poetry-0

- name: "Install Poetry"
if: steps.cached-poetry.outputs.cache-hit != 'true'
uses: "snok/install-poetry@v1"

- name: "Install Python 3.11"
uses: "actions/setup-python@v5"
with:
python-version: "3.1"
cache: "poetry"

- name: "Install project"
run: poetry install --all-extras --no-interaction --no-ansi

- name: "Run Pytest"
run: "poetry run pytest -rPx --cov"

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"
1 change: 1 addition & 0 deletions src/serena/exc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from collections.abc import Callable
from typing import Self

from typing_extensions import override

from serena.enums import ReplyCode
Expand Down

0 comments on commit 81c1274

Please sign in to comment.