Test with github action update
This commit is contained in:
parent
ac9c0be6e0
commit
f6892df7cf
1 changed files with 33 additions and 1 deletions
34
.github/workflows/github_action_test_suite.yml
vendored
34
.github/workflows/github_action_test_suite.yml
vendored
|
|
@ -44,7 +44,7 @@ jobs:
|
||||||
mysql user: 'evennia'
|
mysql user: 'evennia'
|
||||||
mysql password: 'password'
|
mysql password: 'password'
|
||||||
|
|
||||||
# wait for db to activage, get logs from their start
|
# wait for db to activate, get logs from their start
|
||||||
- name: Wait / sleep
|
- name: Wait / sleep
|
||||||
uses: jakejarvis/wait-action@v0.1.0
|
uses: jakejarvis/wait-action@v0.1.0
|
||||||
if: ${{ matrix.TESTING_DB == 'postgresql' || matrix.TESTING_DB == 'mysql' }}
|
if: ${{ matrix.TESTING_DB == 'postgresql' || matrix.TESTING_DB == 'mysql' }}
|
||||||
|
|
@ -107,3 +107,35 @@ jobs:
|
||||||
with:
|
with:
|
||||||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
||||||
coverage-reports: ./testing_mygame/coverage.xml
|
coverage-reports: ./testing_mygame/coverage.xml
|
||||||
|
|
||||||
|
docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
-
|
||||||
|
name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
-
|
||||||
|
name: Login to DockerHub
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
-
|
||||||
|
name: Build and push for master
|
||||||
|
if: ${{ matrix.TESTING_DB == 'sqlite3' && matrix.python-version == 3.7 && github.ref == 'refs/heads/master'}}
|
||||||
|
id: docker_build_master
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
tags: user/app:latest
|
||||||
|
-
|
||||||
|
name: Build and push for develop
|
||||||
|
if: ${{ matrix.TESTING_DB == 'sqlite3' && matrix.python-version == 3.7 && github.ref == 'refs/heads/develop'}}
|
||||||
|
id: docker_build_develop
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
tags: user/app:develop
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue