forked from mmmaly/chcemvediet
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d579d5
commit 45486a0
Showing
2 changed files
with
54 additions
and
35 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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: Python package | ||
|
||
on: | ||
|
@@ -15,7 +12,7 @@ jobs: | |
runs-on: ubuntu-18.04 | ||
strategy: | ||
matrix: | ||
python-version: [2.7.17, 2.7.18] | ||
python-version: [2.7.18] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -25,32 +22,56 @@ jobs: | |
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update && sudo apt-get install virtualenv && sudo apt-get install gettext | ||
python -m pip install --upgrade pip | ||
printf "%s\n" \ | ||
"1" \ | ||
"y" \ | ||
"y" \ | ||
"y" \ | ||
"y" \ | ||
"localhost:8000" \ | ||
"" \ | ||
"" \ | ||
"" \ | ||
"" \ | ||
"[email protected]"\ | ||
"" \ | ||
"" \ | ||
"y" \ | ||
"y" \ | ||
"y" \ | ||
"y" \ | ||
"admin" \ | ||
"" \ | ||
"" \ | ||
"" \ | ||
"" \ | ||
| PYTHONUNBUFFERED=1 python setup.py | ||
sudo apt-get update && sudo apt-get install virtualenv gettext | ||
- name: Run setup | ||
run: | | ||
CREDENTIALS=( | ||
# Server mode: Local development mode with dummy email infrastructure. | ||
"2" | ||
# Mock libreoffice? | ||
"y" | ||
# Mock imagemagic? | ||
"y" | ||
# Mock abbyyocr11? | ||
"y" | ||
# Install requirements for unittesting? | ||
"y" | ||
# Server domain | ||
"localhost:8000" | ||
# Admin e-mail (default) | ||
"" | ||
# Support e-mail (default) | ||
"" | ||
# Inforequest unique e-mail (default) | ||
"" | ||
# Default from e-mail (default) | ||
"" | ||
# Obligee dummy e-mail | ||
"[email protected]" | ||
# Unique cache key prefix (default) | ||
"" | ||
# Google Custom Search API key (default) | ||
"" | ||
# Load datasheets / Neighbourhood dummy was omitted / Delete it? | ||
"y" | ||
# Load datasheets / Municipality dummy was omitted / Delete it? | ||
"y" | ||
# Load datasheets / District dummy was omitted / Delete it? | ||
"y" | ||
# Load datasheets / Region dummy was omitted / Delete it? | ||
"y" | ||
# Admin password | ||
"admin" | ||
# Facebook OAuth Client ID (default) | ||
"" | ||
# Facebook OAuth Secret (default) | ||
"" | ||
# Google OAuth Client ID (default) | ||
"" | ||
# Google OAuth Secret (default) | ||
"" | ||
) | ||
printf "%s\n" "${CREDENTIALS[@]}" | PYTHONUNBUFFERED=1 python setup.py | ||
- name: Test | ||
run: | | ||
env/bin/python manage.py test |
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