release schedule automation #453
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: π§ͺ End To End (e2e) Tests Workflow | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main, develop ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
e2e-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Checkout | |
uses: actions/checkout@v2 | |
- name: 𧱠Hugo build | |
uses: jakejarvis/hugo-build-action@master | |
with: | |
args: --gc --config ./config.toml -b http://localhost:1313 | |
- name: πΈοΈ Run server | |
run: | | |
cd public && python -m http.server 1313 & | |
- name: π Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: π¨βπ©βπ§ Install dependencies | |
working-directory: ./test | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: π§ Ensure browsers are installed | |
run: python -m playwright install --with-deps | |
- name: π§ͺ Run your tests | |
working-directory: ./test | |
run: pytest --base-url http://localhost:1313 -v --junitxml report.xml e2e/* | |
- name: π· Save screenshots | |
uses: actions/upload-artifact@v2 | |
with: | |
name: screenshots | |
path: test/screenshots/ | |
- name: π Publish Test Report | |
uses: dorny/test-reporter@v1 | |
if: always() | |
with: | |
name: E2E Tests | |
path: './test/report.xml' | |
reporter: java-junit |