Skip to content

test: remove time

test: remove time #27

Workflow file for this run

name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: tests
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tests/requirements.txt
- name: Ensure browsers are installed
run: python -m playwright install --with-deps
- name: Checkout geOrchestra/docker
uses: actions/checkout@v4
with:
repository: georchestra/docker
submodules: 'recursive'
ref: 'rbmq-limited'
path: 'docker'
- name: Launch docker-compose
run: |
cd docker
docker compose up -d --wait --quiet-pull
cd ..
- name: Caddy trust
run: |
wget "https://caddyserver.com/api/download?os=linux&arch=amd64" -O caddy
chmod +x caddy
./caddy trust
- name: Run your tests
run: pytest tests --tracing=retain-on-failure --alluredir=allure-results
- name: Load test report history
uses: actions/checkout@v3
continue-on-error: true
if: always()
with:
ref: gh-pages
path: gh-pages
- name: Build test report
uses: simple-elf/[email protected]
if: always()
with:
gh_pages: gh-pages
allure_history: allure-history
allure_results: allure-results
- name: Publish test report
uses: peaceiris/actions-gh-pages@v3
if: always()
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: allure-history
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-traces
path: test-results/