Skip to content

Commit

Permalink
CI: fix use of PDM
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 authored Jun 23, 2022
1 parent de63a0b commit c7c49dd
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,18 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/[email protected]
with:
# Version range or exact version of a Python version to use, using SemVer's version range syntax.
python-version: 3.7

- name: Setup Poetry
# You may pin to the exact commit or the version.
# uses: Gr1N/setup-poetry@09236184f6c1ab47c0dc9c1001c7fe200cf2afb0
uses: Gr1N/setup-poetry@v7
- uses: pdm-project/setup-pdm@main
name: Setup PDM
with:
python-version: 3.7 # Version range or exact version of a Python version to use, the same as actions/setup-python
architecture: x64 # The target architecture (x86, x64) of the Python interpreter. the same as actions/setup-python
prerelease: true # Allow prerelease versions to be installed
enable-pep582: false # Enable PEP 582 package loading globally

- name: Install deps
run: |
POETRY_VIRTUALENVS_CREATE=0 poetry install
pdm install
- name: Run tests
run: python3 -m pytest

0 comments on commit c7c49dd

Please sign in to comment.