Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#280 Add main.yml #287

Merged
merged 9 commits into from
Jul 2, 2020
Merged
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Python package
viliambalaz marked this conversation as resolved.
Show resolved Hide resolved
martinmacko47 marked this conversation as resolved.
Show resolved Hide resolved

on: push

jobs:
build:

runs-on: ubuntu-18.04
strategy:
matrix:
python-version: [2.7.18]
martinmacko47 marked this conversation as resolved.
Show resolved Hide resolved

steps:
- uses: actions/checkout@v2
martinmacko47 marked this conversation as resolved.
Show resolved Hide resolved
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
martinmacko47 marked this conversation as resolved.
Show resolved Hide resolved
- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get install virtualenv gettext
- name: Run setup
run: |
CREDENTIALS=(
martinmacko47 marked this conversation as resolved.
Show resolved Hide resolved
# 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