diff options
| author | Catherine <whitequark@whitequark.org> | 2024-02-28 13:03:05 +0000 |
|---|---|---|
| committer | Catherine <whitequark@whitequark.org> | 2024-02-28 14:59:20 +0000 |
| commit | b67996c48f1bc91412605acd7012f242514d3927 (patch) | |
| tree | 849868278ce43c5f26ba370c685c40b2d2e8ff96 /.github/workflows/main.yml | |
| parent | 5b2cb8e38ebc57b322a56e802df04d0c14a4e083 (diff) | |
Add smoke tests for a selection of iCE40, ECP5, Xilinx, Intel boards.
The purpose of these tests is just to ensure that Amaranth changes do
not blatantly break the boards repository. They are not intended to
exhaustively test even a single board.
Everything Gowin-related is removed due to Apicula's problematic use
of numpy.
Diffstat (limited to '.github/workflows/main.yml')
| -rw-r--r-- | .github/workflows/main.yml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a91c6dc..43d0efc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,19 +42,19 @@ jobs: - name: Install Amaranth release if: ${{ matrix.amaranth-version != 'git' }} run: | - pip install 'amaranth==${{ matrix.amaranth-version }}' + pip install 'amaranth[builtin-yosys] ==${{ matrix.amaranth-version }}' - name: Install Amaranth from git if: ${{ matrix.amaranth-version == 'git' }} run: | - pip install git+https://github.com/amaranth-lang/amaranth.git - - name: Test + pip install 'amaranth[builtin-yosys] @ git+https://github.com/amaranth-lang/amaranth.git' + - name: Run tests run: | python -m unittest discover -t . -s amaranth_boards -p '*.py' - required: # group all required workflows into one for the required status check + required: # group all required workflows into one to avoid reconfiguring this in Actions settings needs: - test + if: ${{ always() && !contains(needs.*.result, 'cancelled') }} runs-on: ubuntu-latest steps: - - run: | - true + - run: ${{ contains(needs.*.result, 'failure') && 'false' || 'true' }} |
