Migrate to pipenv

Closes #384
This commit is contained in:
2021-02-04 13:16:47 +00:00
parent 3853ad0871
commit 9279131edf
7 changed files with 1516 additions and 90 deletions

View File

@@ -36,20 +36,20 @@ jobs:
uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}
key: ${{ env.pythonLocation }}-${{ hashFiles('Pipfile.lock') }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install pycodestyle coveralls django_coverage_plugin pytest-cov
pip install --upgrade --upgrade-strategy eager -r requirements.txt
pip install pipenv
pipenv install -d
- name: Basic Checks
run: |
pycodestyle . --exclude=migrations,node_modules
python manage.py check
python manage.py makemigrations --check --dry-run
python manage.py collectstatic --noinput
pipenv run pycodestyle . --exclude=migrations,node_modules
pipenv run python manage.py check
pipenv run python manage.py makemigrations --check --dry-run
pipenv run python manage.py collectstatic --noinput
- name: Run Tests
run: pytest --cov -n 8
run: pipenv run pytest --cov -n 8
- uses: actions/upload-artifact@v2
if: failure()
with:
@@ -57,4 +57,4 @@ jobs:
path: screenshots/
retention-days: 5
- name: Coveralls
run: coveralls --service=github
run: pipenv run coveralls --service=github