Skip to content
This repository has been archived by the owner on Dec 26, 2024. It is now read-only.

Fix invalid migration of typing.annotations #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/actions/setup-python-poetry/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 'Setup Python and Poetry'
description: 'Checkout code and setup Python with Poetry'
inputs:
python-version:
description: 'The Python version to set up'
required: true
default: '3.10'
poetry-version:
description: 'The Poetry version to set up'
required: true
default: '1.7.1'

runs:
using: 'composite'
steps:
- uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ inputs.poetry-version }}
- uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python-version }}
cache: 'poetry'
- run: |
poetry install --all-extras
echo "$(poetry env info --path)/bin" >> $GITHUB_PATH
shell: bash
29 changes: 18 additions & 11 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,28 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
poetry-version: ["1.2.2"]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
- uses: ./.github/actions/setup-python-poetry
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dependencies
run: poetry install
- name: Test
run: make test
- name: Upload coverage
uses: codecov/codecov-action@v3
run: poetry run coverage run --parallel-mode -m pytest .
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: coverage-directory
path: ./coverage

Upload-Coverage:
runs-on: ubuntu-latest
needs: [ Tests ]
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/setup-python-poetry
- uses: actions/download-artifact@v2
- run: poetry run coverage combine
- name: Upload to Codecov
uses: codecov/codecov-action@v2
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,5 @@ dmypy.json

# Pyre type checker
.pyre/

coverage/
182 changes: 23 additions & 159 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading