From b8560257fc424aa257d3a60df7708988dae49907 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 11 Nov 2022 18:59:53 +0100 Subject: [PATCH] ci: Upgrage GitHub Actions and Python 3.11 production --- .github/workflows/ci.yaml | 40 ++++++++++---------- .github/workflows/manual_artifact_build.yaml | 40 ++++++++++---------- 2 files changed, 40 insertions(+), 40 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 53796394..de437789 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -21,10 +21,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout PyYAML - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install a python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: 3.x @@ -61,7 +61,7 @@ jobs: python packaging/build/smoketest.py - name: Upload sdist artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: dist path: dist/*.tar.gz @@ -82,7 +82,7 @@ jobs: steps: - name: Check cached libyaml state id: cached_libyaml - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: libyaml key: libyaml_${{matrix.cfg.platform}}_${{matrix.cfg.arch}}_${{env.LIBYAML_REF}} @@ -92,7 +92,7 @@ jobs: if: matrix.cfg.arch != 'x86_64' && steps.cached_libyaml.outputs.cache-hit != 'true' - name: Checkout pyyaml - uses: actions/checkout@v2 + uses: actions/checkout@v3 if: steps.cached_libyaml.outputs.cache-hit != 'true' - name: Build libyaml @@ -140,11 +140,11 @@ jobs: steps: - name: Checkout PyYAML - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Fetch cached libyaml id: cached_libyaml - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: libyaml key: libyaml_${{matrix.platform}}_${{matrix.arch}}_${{env.LIBYAML_REF}} @@ -177,7 +177,7 @@ jobs: python3 -m cibuildwheel --platform auto --output-dir dist . - name: Upload artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: dist path: dist/*.whl @@ -201,13 +201,13 @@ jobs: steps: - name: Check cached libyaml state id: cached_libyaml - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: libyaml key: libyaml_macos_${{matrix.arch}}_${{env.LIBYAML_REF}} - name: Checkout PyYAML - uses: actions/checkout@v2 + uses: actions/checkout@v3 if: steps.cached_libyaml.outputs.cache-hit != 'true' - name: Build libyaml @@ -264,11 +264,11 @@ jobs: steps: - name: Checkout PyYAML - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Get cached libyaml state id: cached_libyaml - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: libyaml key: libyaml_macos_${{ matrix.arch || 'x86_64' }}_${{env.LIBYAML_REF}} @@ -292,7 +292,7 @@ jobs: python3 -m cibuildwheel --platform auto --output-dir dist . - name: Upload artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: dist path: dist/*.whl @@ -311,7 +311,7 @@ jobs: steps: - name: Get cached libyaml state id: cached_libyaml - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: libyaml key: libyaml_${{matrix.platform}}_${{matrix.arch}}_${{env.LIBYAML_REF}} @@ -369,7 +369,7 @@ jobs: - platform: windows-2019 build_arch: x64 python_arch: x64 - spec: '3.11.0-rc.2' + spec: '3.11' - platform: windows-2019 build_arch: win32 python_arch: x86 @@ -393,7 +393,7 @@ jobs: - platform: windows-2019 build_arch: win32 python_arch: x86 - spec: '3.11.0-rc.2' + spec: '3.11' steps: # autocrlf screws up tests under Windows - name: Set git to use LF @@ -402,11 +402,11 @@ jobs: git config --global core.eol lf - name: Checkout pyyaml - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Get cached libyaml state id: cached_libyaml - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: libyaml key: libyaml_${{matrix.platform}}_${{matrix.build_arch}}_${{env.LIBYAML_REF}} @@ -416,7 +416,7 @@ jobs: if: steps.cached_libyaml.outputs.cache-hit != 'true' - name: Install python ${{ matrix.spec }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: architecture: ${{ matrix.python_arch }} python-version: ${{ matrix.spec }} @@ -443,7 +443,7 @@ jobs: python tests/lib/test_all.py - name: Upload artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: dist path: dist/*.whl diff --git a/.github/workflows/manual_artifact_build.yaml b/.github/workflows/manual_artifact_build.yaml index fdc7faa3..6996b58b 100644 --- a/.github/workflows/manual_artifact_build.yaml +++ b/.github/workflows/manual_artifact_build.yaml @@ -19,10 +19,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout PyYAML - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install a python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: 3.x @@ -59,7 +59,7 @@ jobs: python packaging/build/smoketest.py - name: Upload sdist artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: dist path: dist/*.tar.gz @@ -80,7 +80,7 @@ jobs: steps: - name: Check cached libyaml state id: cached_libyaml - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: libyaml key: libyaml_${{matrix.cfg.platform}}_${{matrix.cfg.arch}}_${{env.LIBYAML_REF}} @@ -90,7 +90,7 @@ jobs: if: matrix.cfg.arch != 'x86_64' && steps.cached_libyaml.outputs.cache-hit != 'true' - name: Checkout pyyaml - uses: actions/checkout@v2 + uses: actions/checkout@v3 if: steps.cached_libyaml.outputs.cache-hit != 'true' - name: Build libyaml @@ -138,11 +138,11 @@ jobs: steps: - name: Checkout PyYAML - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Fetch cached libyaml id: cached_libyaml - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: libyaml key: libyaml_${{matrix.platform}}_${{matrix.arch}}_${{env.LIBYAML_REF}} @@ -175,7 +175,7 @@ jobs: python3 -m cibuildwheel --platform auto --output-dir dist . - name: Upload artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: dist path: dist/*.whl @@ -199,13 +199,13 @@ jobs: steps: - name: Check cached libyaml state id: cached_libyaml - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: libyaml key: libyaml_macos_${{matrix.arch}}_${{env.LIBYAML_REF}} - name: Checkout PyYAML - uses: actions/checkout@v2 + uses: actions/checkout@v3 if: steps.cached_libyaml.outputs.cache-hit != 'true' - name: Build libyaml @@ -262,11 +262,11 @@ jobs: steps: - name: Checkout PyYAML - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Get cached libyaml state id: cached_libyaml - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: libyaml key: libyaml_macos_${{ matrix.arch || 'x86_64' }}_${{env.LIBYAML_REF}} @@ -290,7 +290,7 @@ jobs: python3 -m cibuildwheel --platform auto --output-dir dist . - name: Upload artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: dist path: dist/*.whl @@ -309,7 +309,7 @@ jobs: steps: - name: Get cached libyaml state id: cached_libyaml - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: libyaml key: libyaml_${{matrix.platform}}_${{matrix.arch}}_${{env.LIBYAML_REF}} @@ -367,7 +367,7 @@ jobs: - platform: windows-2019 build_arch: x64 python_arch: x64 - spec: '3.11.0-rc.2' + spec: '3.11' - platform: windows-2019 build_arch: win32 python_arch: x86 @@ -391,7 +391,7 @@ jobs: - platform: windows-2019 build_arch: win32 python_arch: x86 - spec: '3.11.0-rc.2' + spec: '3.11' steps: # autocrlf screws up tests under Windows - name: Set git to use LF @@ -400,11 +400,11 @@ jobs: git config --global core.eol lf - name: Checkout pyyaml - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Get cached libyaml state id: cached_libyaml - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: libyaml key: libyaml_${{matrix.platform}}_${{matrix.build_arch}}_${{env.LIBYAML_REF}} @@ -414,7 +414,7 @@ jobs: if: steps.cached_libyaml.outputs.cache-hit != 'true' - name: Install python ${{ matrix.spec }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: architecture: ${{ matrix.python_arch }} python-version: ${{ matrix.spec }} @@ -441,7 +441,7 @@ jobs: python tests/lib/test_all.py - name: Upload artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: dist path: dist/*.whl