Skip to content

Commit

Permalink
ci: Upgrage GitHub Actions and Python 3.11 production
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Jul 18, 2023
1 parent 957ae4d commit b856025
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 40 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand All @@ -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}}
Expand All @@ -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
Expand Down Expand Up @@ -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}}
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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}}
Expand All @@ -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
Expand All @@ -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}}
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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}}
Expand All @@ -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 }}
Expand All @@ -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
Expand Down
40 changes: 20 additions & 20 deletions .github/workflows/manual_artifact_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand All @@ -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}}
Expand All @@ -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
Expand Down Expand Up @@ -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}}
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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}}
Expand All @@ -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
Expand All @@ -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}}
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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}}
Expand All @@ -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 }}
Expand All @@ -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
Expand Down

0 comments on commit b856025

Please sign in to comment.