Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the cron-job workflows #226

Merged
merged 1 commit into from
Jun 8, 2023
Merged
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
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ jobs:
# if 'schedule' was the trigger,
# don't run it on contributors' forks
${{
github.repository == 'python/typing_extensions'
|| github.event_name != 'schedule'
github.event_name != 'schedule'
|| (
github.repository == 'python/typing_extensions'
&& github.event_name == 'schedule'
)
}}

strategy:
Expand Down
76 changes: 55 additions & 21 deletions .github/workflows/third_party.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ jobs:
# if 'schedule' was the trigger,
# don't run it on contributors' forks
${{
github.repository == 'python/typing_extensions'
|| github.event_name != 'schedule'
github.event_name != 'schedule'
|| (
github.repository == 'python/typing_extensions'
&& github.event_name == 'schedule'
)
}}
strategy:
fail-fast: false
Expand Down Expand Up @@ -69,8 +72,11 @@ jobs:
# if 'schedule' was the trigger,
# don't run it on contributors' forks
${{
github.repository == 'python/typing_extensions'
|| github.event_name != 'schedule'
github.event_name != 'schedule'
|| (
github.repository == 'python/typing_extensions'
&& github.event_name == 'schedule'
)
}}
strategy:
fail-fast: false
Expand All @@ -83,6 +89,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: ilevkivskyi/typing_inspect
path: typing_inspect
- name: Checkout typing_extensions
uses: actions/checkout@v3
with:
Expand All @@ -92,22 +99,27 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install typing_inspect test dependencies
run: pip install -r test-requirements.txt
run: pip install -r typing_inspect/test-requirements.txt
- name: Install typing_extensions latest
run: pip install ./typing-extensions-latest
- name: List all installed dependencies
run: pip freeze --all
- name: Run typing_inspect tests
run: pytest
run: |
cd typing_inspect
pytest

pyanalyze:
name: pyanalyze tests
if: >-
# if 'schedule' was the trigger,
# don't run it on contributors' forks
${{
github.repository == 'python/typing_extensions'
|| github.event_name != 'schedule'
github.event_name != 'schedule'
|| (
github.repository == 'python/typing_extensions'
&& github.event_name == 'schedule'
)
}}
strategy:
fail-fast: false
Expand All @@ -120,6 +132,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: quora/pyanalyze
path: pyanalyze
- name: Checkout typing_extensions
uses: actions/checkout@v3
with:
Expand All @@ -129,13 +142,15 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install pyanalyze test requirements
run: pip install .[tests]
run: pip install ./pyanalyze[tests]
- name: Install typing_extensions latest
run: pip install ./typing-extensions-latest
- name: List all installed dependencies
run: pip freeze --all
- name: Run pyanalyze tests
run: pytest pyanalyze/
run: |
cd pyanalyze
pytest pyanalyze/

typeguard:
name: typeguard tests
Expand All @@ -151,6 +166,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: agronholm/typeguard
path: typeguard
- name: Checkout typing_extensions
uses: actions/checkout@v3
with:
Expand All @@ -160,22 +176,27 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install typeguard test requirements
run: pip install -e .[test]
run: pip install -e ./typeguard[test]
- name: Install typing_extensions latest
run: pip install ./typing-extensions-latest
- name: List all installed dependencies
run: pip freeze --all
- name: Run typeguard tests
run: pytest
run: |
cd typeguard
pytest

typed-argument-parser:
name: typed-argument-parser tests
if: >-
# if 'schedule' was the trigger,
# don't run it on contributors' forks
${{
github.repository == 'python/typing_extensions'
|| github.event_name != 'schedule'
github.event_name != 'schedule'
|| (
github.repository == 'python/typing_extensions'
&& github.event_name == 'schedule'
)
}}
strategy:
fail-fast: false
Expand All @@ -188,6 +209,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: swansonk14/typed-argument-parser
path: typed-argument-parser
- name: Checkout typing_extensions
uses: actions/checkout@v3
with:
Expand All @@ -204,23 +226,28 @@ jobs:
git config --global user.name "Your Name"
- name: Install typed-argument-parser test requirements
run: |
pip install -e .
pip install -e ./typed-argument-parser
pip install pytest
- name: Install typing_extensions latest
run: pip install ./typing-extensions-latest
- name: List all installed dependencies
run: pip freeze --all
- name: Run typed-argument-parser tests
run: pytest
run: |
cd typed-argument-parser
pytest

stubtest:
name: stubtest tests
if: >-
# if 'schedule' was the trigger,
# don't run it on contributors' forks
${{
github.repository == 'python/typing_extensions'
|| github.event_name != 'schedule'
github.event_name != 'schedule'
|| (
github.repository == 'python/typing_extensions'
&& github.event_name == 'schedule'
)
}}
strategy:
fail-fast: false
Expand All @@ -233,6 +260,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: python/mypy
path: mypy
- name: Checkout typing_extensions
uses: actions/checkout@v3
with:
Expand All @@ -243,23 +271,29 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install mypy test requirements
run: |
cd mypy
pip install -r test-requirements.txt
pip install -e .
- name: Install typing_extensions latest
run: pip install ./typing-extensions-latest
- name: List all installed dependencies
run: pip freeze --all
- name: Run stubtest tests
run: pytest ./mypy/test/teststubtest.py
run: |
cd mypy
pytest ./mypy/test/teststubtest.py

cattrs:
name: cattrs tests
if: >-
# if 'schedule' was the trigger,
# don't run it on contributors' forks
${{
github.repository == 'python/typing_extensions'
|| github.event_name != 'schedule'
github.event_name != 'schedule'
|| (
github.repository == 'python/typing_extensions'
&& github.event_name == 'schedule'
)
}}
strategy:
fail-fast: false
Expand Down