Skip to content

Commit

Permalink
Update CI job to download Autonity binary from Autonity build artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
szemate committed Feb 17, 2025
1 parent 792dfe2 commit b6271a8
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/onpush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b6271a8

Please sign in to comment.