This commit is contained in:
loviuz 2021-05-15 16:15:00 +02:00 committed by GitHub
parent 9351789653
commit 22b53ab204
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -103,28 +103,28 @@ jobs:
run: |
sudo mv ../openstamanager /var/www/html/openstamanager
sudo chmod -R 0777 /var/www/html/openstamanager
cd /var/www/html/openstamanager
- name: Check out test repository
uses: actions/checkout@v2
with:
repository: devcode-it/openstamanager-tests
path: python-tests
working-directory: /var/www/html/openstamanager
- name: Install Python dependencies
run: |
cd python-tests/
cd /var/www/html/python-tests/
python -m pip install --upgrade pip
python -m pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Init test configuration
run: |
cd python-tests/
cd /var/www/html/python-tests/
echo -ne "{\n \"login\": {\n \"password\": \"admin\",\n \"username\": \"admin\"\n },\n \"database\": {\n \"host\": \"localhost\",\n \"user\": \"root\",\n \"pass\": \"root\",\n \"name\": \"osm\"\n },\n \"server\": \"http://localhost/openstamanager\",\n \"browser\": \"firefox\",\n \"headless\": true\n}" > config.json
pytest Init.py
- name: Execute tests
run: |
cd python-tests/
cd /var/www/html/python-tests/
pytest tests