Skip to content

Commit

Permalink
Use some more compact YAML syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodiologist committed Oct 4, 2024
1 parent 9ddeaaf commit 23d2969
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
os: macos-latest
python: 3.12

name: ${{ format('{0}{1}', matrix.name-prefix, matrix.python) }}
name: ${{ matrix.name-prefix }}${{ matrix.python }}
runs-on: ${{ matrix.os }}
env:
TERM: xterm-256color
Expand All @@ -34,15 +34,14 @@ jobs:
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v4
- if: ${{ matrix.python != 'pyodide' }}
- if: matrix.python != 'pyodide'
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- if: ${{ matrix.python == 'pyodide' }}
python-version: ${{ matrix.python }}
- if: matrix.python == 'pyodide'
uses: actions/setup-python@v5
with:
python-version: 3
- if: ${{ matrix.python == 'pyodide' }}
with: {python-version: 3}
- if: matrix.python == 'pyodide'
uses: actions/setup-node@v4
- name: Install
shell: bash
Expand Down

0 comments on commit 23d2969

Please sign in to comment.