Skip to content

Download test case #1337

Download test case

Download test case #1337

name: Download test case
#on: workflow_dispatch
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
- cron: "0 6 * * *"
- cron: "0 9 * * *"
- cron: "0 12 * * *"
- cron: "0 15 * * *"
- cron: "0 18 * * *"
- cron: "0 21 * * *"
jobs:
crawl:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./crawler
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps chromium
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-artifact
path: crawler/
download:
needs: crawl
runs-on: ubuntu-latest
permissions:
contents: write
defaults:
run:
working-directory: ./
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/download-artifact@main
with:
name: playwright-artifact
path: crawler/
- name: Set Github identity
run: |
git config --global user.email "[email protected]"
git config --global user.name "conlacda"
- name: Download test case
run: |
pip install -r requirements.txt
python downloader.py