CI: use HEAD Amaranth for smoke testing.

This commit is contained in:
Catherine 2024-02-28 13:56:44 +00:00
parent 544258354b
commit 3a1f0a7c32

View file

@ -68,16 +68,27 @@ jobs:
- amaranth-lang/amaranth-soc - amaranth-lang/amaranth-soc
name: 'smoke (${{ matrix.project }})' name: 'smoke (${{ matrix.project }})'
steps: steps:
- name: Check out Amaranth source code
uses: actions/checkout@v4
with:
path: amaranth
fetch-depth: 0
- name: Check out source code - name: Check out source code
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
repository: ${{ matrix.project }} repository: ${{ matrix.project }}
path: project
fetch-depth: 0 fetch-depth: 0
- name: Set up PDM - name: Set up PDM
uses: pdm-project/setup-pdm@v4 uses: pdm-project/setup-pdm@v4
- name: Install dependencies - name: Install dependencies
working-directory: project
run: | run: |
pdm install --dev pdm install --dev
- name: Use Amaranth HEAD revision
working-directory: project
run: |
pdm add ../amaranth
- name: Cache YoWASP build products - name: Cache YoWASP build products
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
@ -86,6 +97,7 @@ jobs:
restore-keys: | restore-keys: |
YoWASP-${{ runner.os }}- YoWASP-${{ runner.os }}-
- name: Run tests - name: Run tests
working-directory: project
run: | run: |
pdm run test pdm run test