Skip to content

Commit 3776b7d

Browse files
committed
Fix github actions to install within PDM
1 parent 5fd1446 commit 3776b7d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/main.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,21 @@ jobs:
3838
python-version: ${{ matrix.python-version }}
3939
- name: Install dependencies
4040
run: |
41-
pip install codecov
4241
pdm install --dev
4342
- name: Install Amaranth release
4443
if: ${{ matrix.amaranth-version != 'git' }}
4544
run: |
46-
pip install 'amaranth==${{ matrix.amaranth-version }}'
45+
pdm install 'amaranth==${{ matrix.amaranth-version }}'
4746
- name: Install Amaranth from git
4847
if: ${{ matrix.amaranth-version == 'git' }}
4948
run: |
50-
pip install git+https://github.com/amaranth-lang/amaranth.git
49+
pdm install git+https://github.com/amaranth-lang/amaranth.git
5150
- name: Run tests
5251
run: |
5352
pdm run test
5453
- name: Submit code coverage
5554
run:
56-
codecov
55+
pdm run codecov
5756

5857
document:
5958
runs-on: ubuntu-latest

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ build-backend = "pdm.backend"
3434
[tool.pdm.dev-dependencies]
3535
test = [
3636
"coverage",
37+
"codecov"
3738
]
3839
docs = [
3940
"sphinx~=7.1",

0 commit comments

Comments
 (0)