From bc0b3fe066c84366760dfdb0a161a432fbf7996a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sara=20Aim=C3=A9e=20Smiseth?= <51710585+SaraSmiseth@users.noreply.github.com> Date: Fri, 9 Oct 2020 08:37:32 +0200 Subject: [PATCH] wip tests test.YML13 --- .github/workflows/test.yml | 13 ------------- tests/test.bash | 4 +++- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a299e60..57d15b2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,23 +9,10 @@ on: jobs: test: runs-on: ubuntu-latest - container: archlinux:latest steps: - uses: actions/checkout@v2 - - name: Install dependencies - run: pacman -Syu --noconfirm docker docker-compose python sudo - - - name: Status timezone - run: timedatectl status - - - name: list timezones - run: timedatectl list-timezones - - - name: Set timezone - run: timedatectl set-timezone Europe/Berlin - - name: build test image run: docker build . -t prosody diff --git a/tests/test.bash b/tests/test.bash index 127cb4d..2fe2df3 100755 --- a/tests/test.bash +++ b/tests/test.bash @@ -32,8 +32,10 @@ sudo docker-compose down \ && sudo docker exec tests_prosody_1 /bin/bash -c "/entrypoint.sh register user3 localhost 12345678" \ \ && python --version \ -&& python -m venv venv \ +&& python3 --version \ +&& python3 -m venv venv \ && source venv/bin/activate \ +&& python --version \ && pip install -r requirements.txt \ && pytest \ && deactivate \