From 2e4ee59114dd66901d75efb312e9d3e793effefe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Szendr=C5=91?= Date: Mon, 17 Feb 2025 17:32:58 +0000 Subject: [PATCH] Update CI job to download Autonity binary from Autonity build artifacts --- .github/workflows/onpush.yml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/onpush.yml b/.github/workflows/onpush.yml index c1d9e4e..e58b3d3 100644 --- a/.github/workflows/onpush.yml +++ b/.github/workflows/onpush.yml @@ -13,20 +13,33 @@ jobs: strategy: matrix: python-ver: ["3.9", "3.10", "3.11", "3.12", "3.13"] - os: [ubuntu-22.04, macos-latest] - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - with: - submodules: recursive + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-ver }} + - name: Install Hatch run: pip install --upgrade hatch + + - name: Get Autonity run ID + id: get_run_id + run: echo run_id=$(cat AUTONITY_RUN_ID) >> $GITHUB_OUTPUT + + - name: Download Autonity build artifacts + uses: actions/download-artifact@v4 + with: + path: build/autonity + repository: clearmatics/autonity + github-token: ${{ secrets.ACCESS_TOKEN }} + run-id: ${{ steps.get_run_id.outputs.run_id }} + - name: Lint run: hatch run lint:check + - name: Test run: hatch run +py=${{ matrix.python-ver }} test:all