Skip to content

Commit

Permalink
Test on multiple just versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrieb committed Dec 22, 2023
1 parent fbb43bf commit a6a3d3f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ on:
permissions:
contents: read

env:
JUST_VERSION: '1.17.0'

defaults:
run:
shell: bash -euxo pipefail {0}
Expand All @@ -35,7 +32,7 @@ jobs:
python3 -m pip install .[test]
- name: Install Just on Linux
run: |
curl -L "https://github.com/casey/just/releases/download/${JUST_VERSION}/just-${JUST_VERSION}-x86_64-unknown-linux-musl.tar.gz" \
curl -L "https://github.com/casey/just/releases/download/1.17.0/just-1.17.0-x86_64-unknown-linux-musl.tar.gz" \
| sudo tar -C /usr/local/bin -xzv just
- name: Lint
run: |
Expand All @@ -48,11 +45,15 @@ jobs:
matrix:
os: [ubuntu-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
just-versoin: ['1.17.0']
include:
- os: macos-latest
python-version: '3.8'
- os: 'ubuntu-20.04'
python-version: '3.7'
- os: ubuntu-latest
python-version: '3.8'
just-version: '1.13.0'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand All @@ -67,13 +68,13 @@ jobs:
- name: Install Just on macOS
if: ${{ startsWith(matrix.os, 'macos') }}
run: |
curl -L "https://github.com/casey/just/releases/download/${JUST_VERSION}/just-${JUST_VERSION}-x86_64-apple-darwin.tar.gz" \
curl -L "https://github.com/casey/just/releases/download/${{ matrix.just-version }}/just-${{ matrix.just-version }}-x86_64-apple-darwin.tar.gz" \
| sudo tar -C /usr/local/bin -xzv just
- name: Install Just on Linux
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: |
curl -L "https://github.com/casey/just/releases/download/${JUST_VERSION}/just-${JUST_VERSION}-x86_64-unknown-linux-musl.tar.gz" \
curl -L "https://github.com/casey/just/releases/download/${{ matrix.just-version }}/just-${{ matrix.just-version }}-x86_64-unknown-linux-musl.tar.gz" \
| sudo tar -C /usr/local/bin -xzv just
- name: Run tests
run: |
just test
just test

0 comments on commit a6a3d3f

Please sign in to comment.