mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-18 01:45:59 +08:00
Rework how pyright is run in CI to allow for non-types dependencies(#9434)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
2
.github/workflows/daily.yml
vendored
2
.github/workflows/daily.yml
vendored
@@ -71,7 +71,7 @@ jobs:
|
||||
- name: Run stubtest
|
||||
shell: bash
|
||||
run: |
|
||||
PACKAGES=$(python tests/get_packages.py)
|
||||
PACKAGES=$(python tests/get_stubtest_system_requirements.py)
|
||||
|
||||
if [ "${{ runner.os }}" = "Linux" ]; then
|
||||
if [ -n "$PACKAGES" ]; then
|
||||
|
||||
2
.github/workflows/stubtest_third_party.yml
vendored
2
.github/workflows/stubtest_third_party.yml
vendored
@@ -58,7 +58,7 @@ jobs:
|
||||
|
||||
if [ -n "$STUBS" ]; then
|
||||
echo "Testing $STUBS..."
|
||||
PACKAGES=$(python tests/get_packages.py $STUBS)
|
||||
PACKAGES=$(python tests/get_stubtest_system_requirements.py $STUBS)
|
||||
|
||||
if [ "${{ runner.os }}" = "Linux" ]; then
|
||||
if [ -n "$PACKAGES" ]; then
|
||||
|
||||
14
.github/workflows/tests.yml
vendored
14
.github/workflows/tests.yml
vendored
@@ -112,6 +112,20 @@ jobs:
|
||||
fail-fast: false
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.10"
|
||||
cache: pip
|
||||
cache-dependency-path: requirements-tests.txt
|
||||
- name: Install 3rd-party dependencies for stubs packages
|
||||
run: |
|
||||
pip install -r requirements-tests.txt
|
||||
DEPENDENCIES=$(python tests/get_external_stub_requirements.py)
|
||||
if [ -n "$DEPENDENCIES" ]; then
|
||||
echo "Installing packages: $DEPENDENCIES"
|
||||
pip install $DEPENDENCIES
|
||||
fi
|
||||
- run: pip freeze --all
|
||||
- name: Get pyright version
|
||||
uses: SebRollen/toml-action@v1.0.2
|
||||
id: pyright_version
|
||||
|
||||
Reference in New Issue
Block a user