wip tests test.YML13

This commit is contained in:
Sara Aimée Smiseth 2020-10-09 08:37:32 +02:00
parent 11e414d913
commit bc0b3fe066
2 changed files with 3 additions and 14 deletions

View file

@ -9,23 +9,10 @@ on:
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: archlinux:latest
steps: steps:
- uses: actions/checkout@v2 - 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 - name: build test image
run: docker build . -t prosody run: docker build . -t prosody

View file

@ -32,8 +32,10 @@ sudo docker-compose down \
&& sudo docker exec tests_prosody_1 /bin/bash -c "/entrypoint.sh register user3 localhost 12345678" \ && sudo docker exec tests_prosody_1 /bin/bash -c "/entrypoint.sh register user3 localhost 12345678" \
\ \
&& python --version \ && python --version \
&& python -m venv venv \ && python3 --version \
&& python3 -m venv venv \
&& source venv/bin/activate \ && source venv/bin/activate \
&& python --version \
&& pip install -r requirements.txt \ && pip install -r requirements.txt \
&& pytest \ && pytest \
&& deactivate \ && deactivate \