-
-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove all but essential changes from pre-commit workflow
- Loading branch information
1 parent
a10e2cc
commit 4dfc9bb
Showing
2 changed files
with
15 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ jobs: | |
DEBIAN_FRONTEND: noninteractive | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y --no-install-recommends gcc gettext pandoc | ||
sudo apt-get install -y pandoc | ||
# https://github.com/actions/checkout | ||
- name: Checkout cc-licenses | ||
|
@@ -61,30 +61,31 @@ jobs: | |
python-version: "3.7" | ||
|
||
- name: Install pipenv | ||
# Use pipenv 2021.5.29 to circumvent errors: | ||
# Use pipenv 2021.5.29 to circumvent errors with 2021.11.5.post0 on | ||
# Ubuntu 20.04 | ||
# https://github.com/pypa/pipenv/issues/4833 | ||
run: | | ||
python -m pip install --no-cache-dir --upgrade pip | ||
python -m pip install --no-cache-dir pipenv==2021.5.29 | ||
python -m pip install --upgrade pip | ||
python -m pip install pipenv==2021.5.29 | ||
- name: Install Python dependencies | ||
run: | | ||
pipenv sync --dev --system | ||
pipenv sync --dev | ||
- name: Update Django database schema | ||
env: | ||
DATA_REPOSITORY_DIR: cc-licenses-data | ||
run: | | ||
./manage.py migrate | ||
pipenv run ./manage.py migrate | ||
- name: Start Django development web server | ||
env: | ||
DATA_REPOSITORY_DIR: cc-licenses-data | ||
|
||
run: | | ||
./manage.py runserver &>/dev/null & | ||
pipenv run ./manage.py runserver &>/dev/null & | ||
# https://github.com/pre-commit/action | ||
- uses: pre-commit/[email protected].3 | ||
- uses: pre-commit/[email protected].0 | ||
env: | ||
DATA_REPOSITORY_DIR: cc-licenses-data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters