From 4813ae7dabf5481808c5e4aae78d540df907d5bd Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Sat, 22 Jun 2024 11:47:03 -0500 Subject: Migrate to the PDM build system Avoids problems with .git_archival.txt breaking reproducibility. Nabbed from https://github.com/amaranth-lang/amaranth-soc/commit/d66881d83419c689fc96168150e57d9f467723aa --- .github/workflows/main.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 43d0efc..7bdf6ec 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,10 +35,15 @@ jobs: steps: - name: Check out source code uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 + with: + fetch-depth: 0 + - name: Set up PDM + uses: pdm-project/setup-pdm@v3 with: python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + pdm install --dev - name: Install Amaranth release if: ${{ matrix.amaranth-version != 'git' }} run: | @@ -49,7 +54,7 @@ jobs: 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' + pdm run test required: # group all required workflows into one to avoid reconfiguring this in Actions settings needs: -- cgit v1.2.3