mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Cache pip downloads in CI (#9192)
This commit is contained in:
11
.github/workflows/daily.yml
vendored
11
.github/workflows/daily.yml
vendored
@@ -38,8 +38,8 @@ jobs:
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Update pip
|
||||
run: python -m pip install -U pip
|
||||
cache: pip
|
||||
cache-dependency-path: requirements-tests.txt
|
||||
- name: Install dependencies
|
||||
run: pip install $(grep tomli== requirements-tests.txt) $(grep mypy== requirements-tests.txt)
|
||||
- name: Run stubtest
|
||||
@@ -59,6 +59,11 @@ jobs:
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.9"
|
||||
cache: pip
|
||||
cache-dependency-path: |
|
||||
requirements-tests.txt
|
||||
stubs/**/@tests/requirements-stubtest.txt
|
||||
stubs/**/METADATA.toml
|
||||
- name: Install dependencies
|
||||
run: pip install -r requirements-tests.txt
|
||||
- name: Run stubtest
|
||||
@@ -90,6 +95,8 @@ jobs:
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.10"
|
||||
cache: pip
|
||||
cache-dependency-path: stub_uploader/requirements.txt
|
||||
- name: Run tests
|
||||
run: |
|
||||
cd stub_uploader
|
||||
|
||||
2
.github/workflows/stubsabot.yml
vendored
2
.github/workflows/stubsabot.yml
vendored
@@ -24,6 +24,8 @@ jobs:
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.10"
|
||||
cache: pip
|
||||
cache-dependency-path: requirements-tests.txt
|
||||
- name: git config
|
||||
run: |
|
||||
git config --global user.name stubsabot
|
||||
|
||||
4
.github/workflows/stubtest_stdlib.yml
vendored
4
.github/workflows/stubtest_stdlib.yml
vendored
@@ -39,8 +39,8 @@ jobs:
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Update pip
|
||||
run: python -m pip install -U pip
|
||||
cache: pip
|
||||
cache-dependency-path: requirements-tests.txt
|
||||
- name: Install dependencies
|
||||
run: pip install $(grep mypy== requirements-tests.txt)
|
||||
- name: Run stubtest
|
||||
|
||||
5
.github/workflows/stubtest_third_party.yml
vendored
5
.github/workflows/stubtest_third_party.yml
vendored
@@ -35,6 +35,11 @@ jobs:
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.9"
|
||||
cache: pip
|
||||
cache-dependency-path: |
|
||||
requirements-tests.txt
|
||||
stubs/**/@tests/requirements-stubtest.txt
|
||||
stubs/**/METADATA.toml
|
||||
- name: Install dependencies
|
||||
run: pip install -r requirements-tests.txt
|
||||
- name: Run stubtest
|
||||
|
||||
12
.github/workflows/tests.yml
vendored
12
.github/workflows/tests.yml
vendored
@@ -29,6 +29,8 @@ jobs:
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.10"
|
||||
cache: pip
|
||||
cache-dependency-path: requirements-tests.txt
|
||||
- run: pip install -r requirements-tests.txt
|
||||
- run: ./tests/check_consistent.py
|
||||
|
||||
@@ -50,6 +52,8 @@ jobs:
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.10"
|
||||
cache: pip
|
||||
cache-dependency-path: requirements-tests.txt
|
||||
- run: pip install -r requirements-tests.txt
|
||||
- run: flake8
|
||||
|
||||
@@ -61,6 +65,8 @@ jobs:
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.10"
|
||||
cache: pip
|
||||
cache-dependency-path: requirements-tests.txt
|
||||
- run: pip install -r requirements-tests.txt
|
||||
- run: ./tests/pytype_test.py --print-stderr
|
||||
|
||||
@@ -77,6 +83,8 @@ jobs:
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.10"
|
||||
cache: pip
|
||||
cache-dependency-path: requirements-tests.txt
|
||||
- run: pip install -r requirements-tests.txt
|
||||
- run: python ./tests/mypy_test.py --platform=${{ matrix.platform }} --python-version=${{ matrix.python-version }}
|
||||
|
||||
@@ -88,6 +96,8 @@ jobs:
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.10"
|
||||
cache: pip
|
||||
cache-dependency-path: requirements-tests.txt
|
||||
- run: pip install -r requirements-tests.txt
|
||||
- run: python ./tests/regr_test.py --all
|
||||
|
||||
@@ -141,6 +151,8 @@ jobs:
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.10"
|
||||
cache: pip
|
||||
cache-dependency-path: stub_uploader/requirements.txt
|
||||
- name: Run tests
|
||||
run: |
|
||||
cd stub_uploader
|
||||
|
||||
@@ -34,6 +34,8 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.9
|
||||
python-version: "3.9"
|
||||
cache: pip
|
||||
cache-dependency-path: requirements-tests.txt
|
||||
- run: pip install -r requirements-tests.txt
|
||||
- run: python ./tests/typecheck_typeshed.py --platform=${{ matrix.platform }}
|
||||
|
||||
Reference in New Issue
Block a user