Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade GitHub Actions #659

Closed
wants to merge 1 commit into from
Closed
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
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 @@ -173,11 +173,11 @@ jobs:
run: |
set -eux
python3 -V
python3 -m pip install -U --user cibuildwheel
python3 -m pip install --upgrade --user cibuildwheel
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 @@ -288,11 +288,11 @@ jobs:
SDKROOT: ${{ matrix.sdkroot || 'macosx' }}
run: |
python3 -V
python3 -m pip install -U --user cibuildwheel
python3 -m pip install --upgrade --user cibuildwheel
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 @@ -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