Skip to content

Commit

Permalink
Update contracts-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyfilyanin authored Oct 7, 2024
1 parent fbf7d67 commit be53ab1
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/contracts-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ concurrency:

jobs:
prepare:
name: prepare
name: Prepare
runs-on: ubuntu-latest

outputs:
GEAR_VERSION: ${{ steps.get_gear_version.outputs.GEAR_VERSION }}

steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -41,10 +45,10 @@ jobs:
with:
python-version: '3.12'

- name: Set up Python (to get the latest GEAR version)
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Get latest GEAR version
id: get_gear_version
Expand All @@ -67,7 +71,11 @@ jobs:

test:
runs-on: self-hosted
needs: [prepare]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Rust (Stable)
uses: dtolnay/rust-toolchain@stable
with:
Expand All @@ -77,7 +85,7 @@ jobs:
- name: Prepare Gear Binary
run: |
mkdir -p target/tmp
wget -qO- https://get.gear.rs/gear-v${{ steps.get_gear_version.outputs.GEAR_VERSION }}-x86_64-unknown-linux-gnu.tar.xz | tar xJ -C target/tmp
wget -qO- https://get.gear.rs/gear-v${{ needs.prepare.outputs.GEAR_VERSION }}-x86_64-unknown-linux-gnu.tar.xz | tar xJ -C target/tmp
# mandatory tasks
- name: Fmt
Expand Down

0 comments on commit be53ab1

Please sign in to comment.