Further tweaks to githubaction setup
This commit is contained in:
parent
10dae4cefa
commit
9c85ba2ffb
1 changed files with 17 additions and 22 deletions
37
.github/workflows/pythonpackage.yml
vendored
37
.github/workflows/pythonpackage.yml
vendored
|
|
@ -23,7 +23,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Set up postgreSQL database
|
- name: Set up postgreSQL database
|
||||||
if: ${{ matrix.TESTING_DB }} == 'postgresql'
|
if: ${{ matrix.TESTING_DB == 'postgresql' }}
|
||||||
|
uses: harmon758/postgresql-action@v1
|
||||||
|
with:
|
||||||
|
postgresql version: '11'
|
||||||
run: |
|
run: |
|
||||||
psql --version
|
psql --version
|
||||||
sudo service postgresql start
|
sudo service postgresql start
|
||||||
|
|
@ -31,7 +34,10 @@ jobs:
|
||||||
psql -U postgres -c "CREATE USER evennia WITH PASSWORD 'password';"
|
psql -U postgres -c "CREATE USER evennia WITH PASSWORD 'password';"
|
||||||
psql -U postgres -c "ALTER USER evennia CREATEDB;"
|
psql -U postgres -c "ALTER USER evennia CREATEDB;"
|
||||||
- name: Set up MySQL database
|
- name: Set up MySQL database
|
||||||
if: ${{ matrix.TESTING_DB }} == 'mysql'
|
if: ${{ matrix.TESTING_DB == 'mysql' }}
|
||||||
|
uses: mirromutth/mysql-action@v1.1
|
||||||
|
with:
|
||||||
|
mysql version: '8.0'
|
||||||
run: |
|
run: |
|
||||||
mysql --version
|
mysql --version
|
||||||
sudo service mysql start
|
sudo service mysql start
|
||||||
|
|
@ -43,6 +49,8 @@ jobs:
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install psycopg2-binary
|
pip install psycopg2-binary
|
||||||
pip install mysqlclient
|
pip install mysqlclient
|
||||||
|
pip install coveralls
|
||||||
|
pip install codacy-coverage
|
||||||
pip install -e .
|
pip install -e .
|
||||||
pip install -r requirements_extra.txt
|
pip install -r requirements_extra.txt
|
||||||
- name: Set up evennia
|
- name: Set up evennia
|
||||||
|
|
@ -55,22 +63,9 @@ jobs:
|
||||||
- name: run test
|
- name: run test
|
||||||
run: |
|
run: |
|
||||||
coverage run --source=../evennia --omit=*/migrations/*,*/urls.py,*/test*.py,*.sh,*.txt,*.md,*.pyc,*.service ../bin/unix/evennia test --settings=settings --keepdb evennia
|
coverage run --source=../evennia --omit=*/migrations/*,*/urls.py,*/test*.py,*.sh,*.txt,*.md,*.pyc,*.service ../bin/unix/evennia test --settings=settings --keepdb evennia
|
||||||
|
- name: run coverall
|
||||||
coveralls:
|
if: ${{ matrix.TESTING_DB == 'sqlite3' && matix.python-version == 3.7 }}
|
||||||
runs-on: ubuntu-latest
|
run: |
|
||||||
steps:
|
coveralls
|
||||||
- uses: actions/checkout@v2
|
coverage xml
|
||||||
- name: Set up Python
|
python-codacy-coverage -r coverage.xml
|
||||||
uses: actions/setup-python@v2
|
|
||||||
with:
|
|
||||||
python-version: 3.7
|
|
||||||
- name: install coveralls
|
|
||||||
run: |
|
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install coveralls
|
|
||||||
pip install codacy-coverage
|
|
||||||
- name: run and upload to coveralls
|
|
||||||
run: |
|
|
||||||
coveralls
|
|
||||||
coverage xml
|
|
||||||
python-codacy-coverage -r coverage.xml
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue