Skip to content

Integration tests

Integration tests #2

Workflow file for this run

name: Tests on Docker
on:
push:
pull_request:
jobs:
container:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
cache: 'pip'
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install -r requirements-test.txt
- name: Run scrapyd-k8s
run: |
cp scrapyd_k8s.docker.conf scrapyd_k8s.conf
python -m scrapyd_k8s &
sleep 1
curl http://localhost:6800/daemonstatus.json
- name: Run tests
run: pytest test_api.py