Skip to content
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
19 changes: 11 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ jobs:
path: dist/
- name: Install wheel
run: |
export path_to_file=$(find dist -type f -name "typing_extensions-*.whl")
path_to_file="$(find dist -type f -name "typing_extensions-*.whl")"
export path_to_file
echo "::notice::Installing wheel: $path_to_file"
python -m pip install --user $path_to_file
python -m pip install --user "$path_to_file"
python -m pip list
- name: Run typing_extensions tests against installed package
run: rm src/typing_extensions.py && python src/test_typing_extensions.py
Expand All @@ -89,10 +90,11 @@ jobs:
path: dist/
- name: Unpack and test source distribution
run: |
export path_to_file=$(find dist -type f -name "typing_extensions-*.tar.gz")
path_to_file="$(find dist -type f -name "typing_extensions-*.tar.gz")"
export path_to_file
echo "::notice::Unpacking source distribution: $path_to_file"
tar xzf $path_to_file -C dist/
cd ${path_to_file%.tar.gz}/src
tar xzf "$path_to_file" -C dist/
cd "${path_to_file%.tar.gz}/src"
python test_typing_extensions.py

test-sdist-installed:
Expand All @@ -114,9 +116,10 @@ jobs:
path: dist/
- name: Install source distribution
run: |
export path_to_file=$(find dist -type f -name "typing_extensions-*.tar.gz")
path_to_file="$(find dist -type f -name "typing_extensions-*.tar.gz")"
export path_to_file
echo "::notice::Installing source distribution: $path_to_file"
python -m pip install --user $path_to_file
python -m pip install --user "$path_to_file"
python -m pip list
- name: Run typing_extensions tests against installed package
run: rm src/typing_extensions.py && python src/test_typing_extensions.py
Expand Down Expand Up @@ -144,6 +147,6 @@ jobs:
name: python-package-distributions
path: dist/
- name: Ensure exactly one sdist and one wheel have been downloaded
run: test $(ls dist/*.tar.gz | wc -l) = 1 && test $(ls dist/*.whl | wc -l) = 1
run: test "$(find dist/*.tar.gz | wc -l | xargs)" = 1 && test "$(find dist/*.whl | wc -l | xargs)" = 1
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
12 changes: 6 additions & 6 deletions .github/workflows/third_party.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
run: |
set -x
cd typing_inspect
uv pip install --system -r test-requirements.txt --exclude-newer $(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)
uv pip install --system -r test-requirements.txt --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)"
- name: Install typing_extensions latest
run: uv pip install --system "typing-extensions @ ./typing-extensions-latest"
- name: List all installed dependencies
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
run: |
set -x
cd pycroscope
uv pip install --system 'pycroscope[tests] @ .' --exclude-newer $(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)
uv pip install --system 'pycroscope[tests] @ .' --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)"
- name: Install typing_extensions latest
run: uv pip install --system "typing-extensions @ ./typing-extensions-latest"
- name: List all installed dependencies
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:
run: |
set -x
cd typeguard
uv pip install --system "typeguard @ ." --group test --exclude-newer $(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)
uv pip install --system "typeguard @ ." --group test --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)"
- name: Install typing_extensions latest
run: uv pip install --system "typing-extensions @ ./typing-extensions-latest"
- name: List all installed dependencies
Expand Down Expand Up @@ -215,8 +215,8 @@ jobs:
run: |
set -x
cd typed-argument-parser
uv pip install --system "typed-argument-parser @ ." --exclude-newer $(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)
uv pip install --system pytest --exclude-newer $(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)
uv pip install --system "typed-argument-parser @ ." --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)"
uv pip install --system pytest --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)"
- name: Install typing_extensions latest
run: uv pip install --system "typing-extensions @ ./typing-extensions-latest"
- name: List all installed dependencies
Expand Down Expand Up @@ -253,7 +253,7 @@ jobs:
run: |
set -x
cd mypy
uv pip install --system -r test-requirements.txt --exclude-newer $(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)
uv pip install --system -r test-requirements.txt --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)"
uv pip install --system -e .
- name: Install typing_extensions latest
run: uv pip install --system "typing-extensions @ ./typing-extensions-latest"
Expand Down
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ repos:
rev: v1.7.7
hooks:
- id: actionlint
additional_dependencies:
# actionlint has a shellcheck integration which extracts shell scripts in `run:` steps from GitHub Actions
# and checks these with shellcheck. This is arguably its most useful feature,
# but the integration only works if shellcheck is installed
- "github.com/wasilibs/go-shellcheck/cmd/[email protected]"
- repo: meta
hooks:
- id: check-hooks-apply
Loading