mirror of
https://github.com/wallabag/docker.git
synced 2025-12-23 12:17:47 +01:00
tests: move docker service start in pytest
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
19
.github/workflows/test.yml
vendored
19
.github/workflows/test.yml
vendored
@ -36,17 +36,14 @@ jobs:
|
||||
- name: "Build image"
|
||||
run: docker-compose -f tests/docker-compose.${{ matrix.database }}.yml build
|
||||
|
||||
- name: "Run image"
|
||||
run: docker-compose -f tests/docker-compose.${{ matrix.database }}.yml up -d
|
||||
|
||||
- name: "Install dependencies"
|
||||
run: pip install pytest requests
|
||||
|
||||
- name: "Check running instance"
|
||||
run: docker ps
|
||||
|
||||
- name: "Wait 60s"
|
||||
run: sleep 60
|
||||
run: pip install pytest pytest-docker requests
|
||||
|
||||
- name: "Run tests"
|
||||
run: py.test tests/
|
||||
run: py.test --database=${{ matrix.database }} tests/
|
||||
|
||||
- name: "Get docker logs"
|
||||
run: docker-compose -p "wallabag_${{ matrix.database }}" -f tests/docker-compose.${{ matrix.database }}.yml logs wallabag
|
||||
|
||||
- name: "Cleanup environment"
|
||||
run: docker-compose -p "wallabag_${{ matrix.database }}" -f tests/docker-compose.${{ matrix.database }}.yml down -v
|
||||
|
||||
Reference in New Issue
Block a user