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.
* #280 Add main.yml * #280 Edit main.yml * #280 Use raw_input instead getpass.getpass * #280 Install requirements for unittesting * #280 Install requirements for unittesting * #280 Add review suggestions * #280 Edit on * #280 Edit on: push * #280 Remove strategy matrix
- Loading branch information
1 parent
5a358e0
commit 7dc315b
Showing
1 changed file
with
67 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Testing project | ||
on: push | ||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 2.7.18 | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update && sudo apt-get install virtualenv gettext | ||
- name: Run setup | ||
run: | | ||
CONFIGURATION=( | ||
# 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" "${CONFIGURATION[@]}" | PYTHONUNBUFFERED=1 python setup.py | ||
- name: Run tests | ||
run: | | ||
env/bin/python manage.py test |