Skip to content

Commit

Permalink
Iterating on pdm venv setup
Browse files Browse the repository at this point in the history
  • Loading branch information
offbyone committed Nov 3, 2024
1 parent 248c080 commit b50e024
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,23 @@ jobs:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]

env:
PDM_IN_VENV: actions

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install pdm
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python-version }}
cache: true
cache-dependency-path: ./pyproject.toml

- name: Install dependencies
run: |
pdm venv create
pdm sync --only-keep --dev
pdm install
- name: Run tests
run: pdm run invoke tests
Expand All @@ -35,6 +41,9 @@ jobs:
name: Lint
runs-on: ubuntu-latest

env:
PDM_IN_VENV: actions

steps:
- uses: actions/checkout@v4
with:
Expand All @@ -47,11 +56,12 @@ jobs:

- name: Install pdm
uses: pdm-project/setup-pdm@v4
with:
python-version: "3.10"

- name: Install dependencies
run: |
pdm venv create
pdm sync --only-keep --dev
pdm install
- name: Run linters
run: pdm run invoke lint --diff
Expand Down

0 comments on commit b50e024

Please sign in to comment.