From 22676f9a79228df216d79ba98209b98c2313c31c Mon Sep 17 00:00:00 2001 From: Waket Zheng Date: Tue, 4 Jun 2024 11:57:00 +0800 Subject: [PATCH] Update tests action (#357) * Update github action * fix typo * Change to new GITHUB_OUTPUT syntax * Use `version=` instead of `name=version::` --- .github/workflows/tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 65e6800..0370d92 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,7 +17,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-13, windows-latest] - python-version: [3.7, 3.8, 3.9, "3.10", "3.11", 3.12, 3.13] + python-version: [3.7, 3.8, 3.9, "3.10", 3.11, 3.12, 3.13] steps: - uses: actions/checkout@v4 @@ -34,7 +34,7 @@ jobs: id: full-python-version shell: bash run: | - echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))") + echo version=$(python -c "import sys; print('-'.join(map(str, sys.version_info)))") >> "$GITHUB_OUTPUT" - name: Install Poetry run: pipx install poetry @@ -46,7 +46,7 @@ jobs: poetry env use python - name: Set up cache - uses: actions/cache@v3 + uses: actions/cache@v4 id: cache with: path: .venv