Skip to content

switch from poetry to pdm #10

switch from poetry to pdm

switch from poetry to pdm #10

Workflow file for this run

name: Run linter and tests on pull requests
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
env:
PYTHON_DEFAULT_VERSION: "3.11"
jobs:
linter:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- ${{ env.PYTHON_DEFAULT_VERSION }}

Check failure on line 18 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / Run linter and tests on pull requests

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 18, Col: 13): Unrecognized named-value: 'env'. Located at position 1 within expression: env.PYTHON_DEFAULT_VERSION
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'pdm.lock'
- uses: actions/cache@v3
with:
path: ~/.cache/pdm
key: ${{ matrix.python-version }}-pdm-${{ hashFiles('pdm.lock') }}
restore-keys: ${{ matrix.python-version }}-pdm-
- name: Install nox
run: python -m pip install --upgrade nox
- name: Run linters
run: nox -vs lint
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.11"]
django-version: ["3.2", "4.2"]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'pdm.lock'
- uses: actions/cache@v3
with:
path: ~/.cache/pdm
key: ${{ matrix.python-version }}-pdm-${{ hashFiles('pdm.lock') }}
restore-keys: ${{ matrix.python-version }}-pdm-
- name: Install nox
run: python -m pip install --upgrade nox
- name: Run unit tests
run: nox -vs test