diff options
| author | Thomas Watson <twatson52@icloud.com> | 2024-06-22 11:47:03 -0500 |
|---|---|---|
| committer | Catherine <whitequark@whitequark.org> | 2024-06-23 04:28:04 +0100 |
| commit | 4813ae7dabf5481808c5e4aae78d540df907d5bd (patch) | |
| tree | f15d75d86717f978326026fec87245d727c72ad0 /.github/workflows | |
| parent | aba2300dc83216523e1c98fdb22471cb4bac5027 (diff) | |
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
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/main.yml | 11 |
1 files changed, 8 insertions, 3 deletions
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: |
