mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-19 02:15:58 +08:00
Remove 'py3' from requirements filename (#6509)
This commit is contained in:
2
.github/workflows/mypy_primer.yml
vendored
2
.github/workflows/mypy_primer.yml
vendored
@@ -33,7 +33,7 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
cd typeshed_to_test
|
||||
MYPY_VERSION=$(grep mypy== requirements-tests-py3.txt | cut -d = -f 3)
|
||||
MYPY_VERSION=$(grep mypy== requirements-tests.txt | cut -d = -f 3)
|
||||
echo "new commit"
|
||||
git rev-list --format=%s --max-count=1 $GITHUB_SHA
|
||||
git checkout -b upstream_master origin/master
|
||||
|
||||
4
.github/workflows/stubtest.yml
vendored
4
.github/workflows/stubtest.yml
vendored
@@ -31,7 +31,7 @@ jobs:
|
||||
- name: Update pip
|
||||
run: python -m pip install -U pip
|
||||
- name: Install dependencies
|
||||
run: pip install $(grep tomli== requirements-tests-py3.txt) $(grep mypy== requirements-tests-py3.txt)
|
||||
run: pip install $(grep tomli== requirements-tests.txt) $(grep mypy== requirements-tests.txt)
|
||||
- name: Run stubtest
|
||||
run: python tests/stubtest_stdlib.py
|
||||
|
||||
@@ -49,6 +49,6 @@ jobs:
|
||||
with:
|
||||
python-version: 3.9
|
||||
- name: Install dependencies
|
||||
run: pip install $(grep tomli== requirements-tests-py3.txt)
|
||||
run: pip install $(grep tomli== requirements-tests.txt)
|
||||
- name: Run stubtest
|
||||
run: python tests/stubtest_third_party.py --num-shards 4 --shard-index ${{ matrix.shard-index }}
|
||||
|
||||
12
.github/workflows/tests.yml
vendored
12
.github/workflows/tests.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
- run: pip install $(grep tomli== requirements-tests-py3.txt)
|
||||
- run: pip install $(grep tomli== requirements-tests.txt)
|
||||
- run: ./tests/check_consistent.py
|
||||
|
||||
new-syntax:
|
||||
@@ -34,7 +34,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
- run: pip install $(grep flake8 requirements-tests-py3.txt)
|
||||
- run: pip install $(grep flake8 requirements-tests.txt)
|
||||
- run: flake8
|
||||
|
||||
pytype:
|
||||
@@ -45,7 +45,7 @@ jobs:
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.9
|
||||
- run: pip install -r requirements-tests-py3.txt
|
||||
- run: pip install -r requirements-tests.txt
|
||||
- run: ./tests/pytype_test.py
|
||||
|
||||
mypy:
|
||||
@@ -59,7 +59,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
- run: pip install $(grep tomli== requirements-tests-py3.txt) $(grep mypy== requirements-tests-py3.txt)
|
||||
- run: pip install $(grep tomli== requirements-tests.txt) $(grep mypy== requirements-tests.txt)
|
||||
- run: ./tests/mypy_test.py --platform=${{ matrix.platform }} --python-version=${{ matrix.python-version }}
|
||||
|
||||
pyright:
|
||||
@@ -107,7 +107,7 @@ jobs:
|
||||
- name: Update pip
|
||||
run: python -m pip install -U pip
|
||||
- name: Install dependencies
|
||||
run: pip install $(grep tomli== requirements-tests-py3.txt) $(grep mypy== requirements-tests-py3.txt)
|
||||
run: pip install $(grep tomli== requirements-tests.txt) $(grep mypy== requirements-tests.txt)
|
||||
- name: Run stubtest
|
||||
run: python tests/stubtest_stdlib.py
|
||||
|
||||
@@ -123,7 +123,7 @@ jobs:
|
||||
with:
|
||||
python-version: 3.9
|
||||
- name: Install dependencies
|
||||
run: pip install $(grep tomli== requirements-tests-py3.txt)
|
||||
run: pip install $(grep tomli== requirements-tests.txt)
|
||||
- name: Run stubtest
|
||||
run: |
|
||||
STUBS=$(git diff --name-only origin/${{ github.base_ref }} HEAD | egrep ^stubs/ | cut -d "/" -f 2 | sort -u | (while read stub; do [ -d stubs/$stub ] && echo $stub || true; done))
|
||||
|
||||
Reference in New Issue
Block a user