mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-13 01:50:46 +01:00
CI
This commit is contained in:
parent
9411e66c41
commit
ea225d4302
33
.github/workflows/main.yml
vendored
33
.github/workflows/main.yml
vendored
@ -10,22 +10,6 @@ jobs:
|
|||||||
tests:
|
tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
container:
|
|
||||||
image: php:7.4-apache
|
|
||||||
ports:
|
|
||||||
- 80:80
|
|
||||||
options: --network-alias=testserver
|
|
||||||
|
|
||||||
env:
|
|
||||||
TEST_BASE_URL: http://testserver
|
|
||||||
SELENIUM_HOST: http://selenium:4444/wd/hub
|
|
||||||
|
|
||||||
services:
|
|
||||||
selenium:
|
|
||||||
image: selenium/standalone-chrome
|
|
||||||
ports:
|
|
||||||
- 4444:4444
|
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.9]
|
python-version: [3.9]
|
||||||
@ -34,17 +18,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Shutdown Ubuntu MySQL (SUDO)
|
|
||||||
run: sudo service mysql stop # Shutdown the Default MySQL, "sudo" is necessary, please not remove it
|
|
||||||
|
|
||||||
- name: Set up MySQL
|
|
||||||
uses: mirromutth/mysql-action@v1.1
|
|
||||||
with:
|
|
||||||
mysql database: 'osm'
|
|
||||||
mysql root password: 'root'
|
|
||||||
mysql user: 'root'
|
|
||||||
mysql password: 'root'
|
|
||||||
|
|
||||||
- name: Set up PHP ${{ matrix.php-version }}
|
- name: Set up PHP ${{ matrix.php-version }}
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
@ -131,6 +104,12 @@ jobs:
|
|||||||
python -m pip install pytest
|
python -m pip install pytest
|
||||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||||
|
|
||||||
|
- name: Restart apache
|
||||||
|
run: sudo service apache2 restart
|
||||||
|
|
||||||
|
- name: Restart MySQL
|
||||||
|
run: sudo service mysql restart
|
||||||
|
|
||||||
- name: Init test configuration
|
- name: Init test configuration
|
||||||
run: |
|
run: |
|
||||||
cd python-tests/
|
cd python-tests/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user