From 85939b6567d5d76433301c7559ab7c9ea296dfd6 Mon Sep 17 00:00:00 2001 From: winkidney Date: Wed, 4 May 2022 22:01:21 +0800 Subject: [PATCH] fix: fix ci runer commands --- .github/workflows/pythonpackage.yml | 7 +++---- Makefile | 4 ++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 6470877..7e76589 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -24,11 +24,10 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install poetry - poetry install + pip install -r requirements.txt - name: Lint with flake8 run: | - make flake8 + make flake8-in-ci - name: Django test run: | - make test + make test-in-ci diff --git a/Makefile b/Makefile index 8ce9008..a785a18 100644 --- a/Makefile +++ b/Makefile @@ -29,10 +29,14 @@ install: poetry install test: poetry run python manage.py test +test-in-ci: + python manage.py test shell: poetry run python manage.py shell flake8: poetry run flake8 +flake8-in-ci: + flake8 docs-serve: poetry run mkdocs serve docs-build: