diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 758ec94..5fbf95e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,9 +12,6 @@ on: permissions: contents: read -env: - JUST_VERSION: '1.17.0' - defaults: run: shell: bash -euxo pipefail {0} @@ -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: | @@ -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 @@ -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 \ No newline at end of file + just test