Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja committed Nov 17, 2024
1 parent 3430841 commit c7b81b8
Showing 1 changed file with 50 additions and 46 deletions.
96 changes: 50 additions & 46 deletions .github/workflows/third_party.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,24 +48,27 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Checkout pydantic
run: git clone https://github.com/pydantic/pydantic.git
- name: Checkout typing_extensions
uses: actions/checkout@v4
with:
path: typing-extensions-latest
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Add local version of typing_extensions as a dependency
run: uv add --editable ./typing-extensions-latest
run: cd pydantic; uv add --editable ../typing-extensions-latest
- name: Install pydantic test dependencies
run: uv sync --group dev
run: cd pydantic; uv sync --group dev
- name: List installed dependencies
run: uv pip list
run: cd pydantic; uv pip list
- name: Run pydantic tests
run: uv run pytest
run: cd pydantic; uv run pytest

typing_inspect:
name: typing_inspect tests
Expand All @@ -86,18 +89,18 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout typing_inspect
run: git clone https://github.com/ilevkivskyi/typing_inspect.git
- name: Checkout typing_extensions
uses: actions/checkout@v4
with:
path: typing-extensions-latest
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Checkout typing_inspect
run: git clone https://github.com/ilevkivskyi/typing_inspect.git
- name: Checkout typing_extensions
uses: actions/checkout@v4
with:
path: typing-extensions-latest
- name: Install typing_inspect test dependencies
run: |
set -x
Expand Down Expand Up @@ -131,19 +134,19 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Check out pyanalyze
run: git clone https://github.com/quora/pyanalyze.git
- name: Checkout typing_extensions
uses: actions/checkout@v4
with:
path: typing-extensions-latest
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Check out pyanalyze
run: git clone https://github.com/quora/pyanalyze.git
- name: Checkout typing_extensions
uses: actions/checkout@v4
with:
path: typing-extensions-latest
- name: Install pyanalyze test requirements
run: |
set -x
Expand Down Expand Up @@ -177,19 +180,19 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Check out typeguard
run: git clone https://github.com/agronholm/typeguard.git
- name: Checkout typing_extensions
uses: actions/checkout@v4
with:
path: typing-extensions-latest
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Check out typeguard
run: git clone https://github.com/agronholm/typeguard.git
- name: Checkout typing_extensions
uses: actions/checkout@v4
with:
path: typing-extensions-latest
- name: Install typeguard test requirements
run: |
set -x
Expand Down Expand Up @@ -224,18 +227,18 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Check out typed-argument-parser
run: git clone https://github.com/swansonk14/typed-argument-parser.git
- name: Checkout typing_extensions
uses: actions/checkout@v4
with:
path: typing-extensions-latest
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Check out typed-argument-parser
run: git clone https://github.com/swansonk14/typed-argument-parser.git
- name: Checkout typing_extensions
uses: actions/checkout@v4
with:
path: typing-extensions-latest
- name: Configure git for typed-argument-parser tests
# typed-argument parser does this in their CI,
# and the tests fail unless we do this
Expand Down Expand Up @@ -276,19 +279,19 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout mypy for stubtest and mypyc tests
run: git clone https://github.com/python/mypy.git
- name: Checkout typing_extensions
uses: actions/checkout@v4
with:
path: typing-extensions-latest
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Checkout mypy for stubtest and mypyc tests
run: git clone https://github.com/python/mypy.git
- name: Checkout typing_extensions
uses: actions/checkout@v4
with:
path: typing-extensions-latest
- name: Install mypy test requirements
run: |
set -x
Expand Down Expand Up @@ -324,28 +327,29 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Checkout cattrs
run: git clone https://github.com/python-attrs/cattrs.git
- name: Checkout typing_extensions
uses: actions/checkout@v4
with:
path: typing-extensions-latest
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install pdm for cattrs
run: pip install pdm
- name: Add latest typing-extensions as a dependency
run: |
cd cattrs
pdm remove typing-extensions
pdm add --dev ./typing-extensions-latest
pdm add --dev ../typing-extensions-latest
- name: Install cattrs test dependencies
run: pdm install --dev -G :all
run: cd cattrs; pdm install --dev -G :all
- name: List all installed dependencies
run: pdm list -vv
run: cd cattrs; pdm list -vv
- name: Run cattrs tests
run: pdm run pytest tests
run: cd cattrs; pdm run pytest tests

create-issue-on-failure:
name: Create an issue if daily tests failed
Expand Down

0 comments on commit c7b81b8

Please sign in to comment.