Skip to content

Scrapy Contracts Checks #354

Scrapy Contracts Checks

Scrapy Contracts Checks #354

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Scrapy Contracts Checks
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '0 4 * * FRI'
jobs:
scrapy-checks:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Install library
run: poetry install --no-interaction
- name: Check scrapy contracts
run: |
poetry run scrapy check -s USER_AGENT='USER_AGENT="transfermarkt-gh/1.0 (https://github.com/dcaribou/transfermarkt-datasets)"'