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

ci: Upgrade GitHub Actions on release/6.1 branch #725

Closed
wants to merge 6 commits 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
41 changes: 21 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@v2 # V2, NOT v3

- name: Install a python
uses: actions/setup-python@v2
uses: actions/setup-python@v2 # V2, NOT v3 or v4
with:
python-version: 3.x

Expand All @@ -34,6 +34,7 @@ jobs:
PYYAML_FORCE_LIBYAML: 0
run: |
python -V
python -m pip install --upgrade pip
python -m pip install build

python -m build .
Expand Down Expand Up @@ -61,7 +62,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,17 +83,17 @@ 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}}

- name: configure docker foreign arch support
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
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 @@ -137,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 All @@ -151,7 +152,7 @@ jobs:
if: steps.cached_libyaml.outputs.cache-hit != 'true'

- name: configure docker foreign arch support
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
if: matrix.arch != 'x86_64'

- name: Build/Test/Package
Expand All @@ -174,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 @@ -198,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 @@ -253,11 +254,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 @@ -281,7 +282,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 @@ -300,7 +301,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 @@ -383,11 +384,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 @@ -397,7 +398,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 @@ -424,7 +425,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
Loading