Skip to content

Commit

Permalink
chore: remove matrices dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
dutterbutter committed Oct 27, 2023
1 parent 33feb62 commit a0ed802
Showing 1 changed file with 1 addition and 31 deletions.
32 changes: 1 addition & 31 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,40 +14,12 @@ env:
CARGO_TERM_COLOR: always

jobs:
matrices:
name: build matrices
runs-on: ubuntu-latest
outputs:
build-matrix: ${{ steps.gen.outputs.build-matrix }}
test-matrix: ${{ steps.gen.outputs.test-matrix }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Generate matrices
id: gen
env:
EVENT_NAME: ${{ github.event_name }}
run: |
output=$(python3 .github/scripts/matrices.py)
echo "::debug::build-matrix=$output"
echo "build-matrix=$output" >> $GITHUB_OUTPUT
export TEST=1
output=$(python3 .github/scripts/matrices.py)
echo "::debug::test-matrix=$output"
echo "test-matrix=$output" >> $GITHUB_OUTPUT
build-tests:
name: build tests
runs-on: [ubuntu-22.04-github-hosted-16core, macos-latest]
timeout-minutes: 60
needs: matrices
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.matrices.outputs.build-matrix) }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
Expand All @@ -70,15 +42,13 @@ jobs:
path: tests-${{ matrix.target }}.tar.zst

test:
name: test ${{ matrix.name }}
name: runnning tests - ${{ matrix.name }}
runs-on: [ubuntu-22.04-github-hosted-16core, macos-latest]
timeout-minutes: 90
needs:
- matrices
- build-tests
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.matrices.outputs.test-matrix) }}
env:
ETH_RPC_URL: https://eth-mainnet.alchemyapi.io/v2/C3JEvfW6VgtqZQa-Qp1E-2srEiIc02sD
steps:
Expand Down

0 comments on commit a0ed802

Please sign in to comment.