Scrapy Contracts Checks #352
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
# 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)"' |