From eee8d6fbeb951ac67eac521aea3989787583c41e Mon Sep 17 00:00:00 2001 From: Elias Gabriel Date: Sat, 25 Nov 2023 21:05:32 -0500 Subject: [PATCH] ci: actually, use pdm --- .github/workflows/ci.yaml | 23 ++++------------------- requirements.txt | 9 --------- 2 files changed, 4 insertions(+), 28 deletions(-) delete mode 100644 requirements.txt diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d6bcc01..fbedef1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -3,21 +3,6 @@ name: CI on: [push, pull_request] jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: "3.7" - - run: python3 -m pip install mypy - - name: Check typing - run: mypy --pretty . - - name: Check formatting - uses: chartboost/ruff-action@v1 - with: - args: check --target-version=py37 - test: runs-on: ubuntu-latest strategy: @@ -43,13 +28,13 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v4 + - name: Set up PDM + uses: pdm-project/setup-pdm@v3 with: python-version: ${{ matrix.python-version }} - cache: "pip" + cache: true - name: Install dependencies - run: pip install -r requirements.txt + run: pdm install -G :all --global -p . --no-lock - name: Run tests run: pytest env: diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 21ea6b0..0000000 --- a/requirements.txt +++ /dev/null @@ -1,9 +0,0 @@ -# This file is @generated by PDM. -# Please do not edit it manually. - -asynccasbin<2.0.0,>=1.1.2 -asyncpg~=0.28.0 -pluggy~=1.2.0 -pytest~=7.0 -pytest-asyncio~=0.21.0 -tortoise-orm[accel]>=0.18.0