Skip to content

Commit

Permalink
#280 Add main.yml (#287)
Browse files Browse the repository at this point in the history
* #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
viliambalaz authored Jul 2, 2020
1 parent 5a358e0 commit 7dc315b
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/main.yml
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

0 comments on commit 7dc315b

Please sign in to comment.