moonstream/.github/workflows/lint.crawlers.yml

31 wiersze
783 B
YAML
Czysty Zwykły widok Historia

2021-08-03 12:22:06 +00:00
name: Lint Moonstream crawlers
on:
pull_request:
branches:
- "main"
2021-08-03 12:22:06 +00:00
paths:
- "crawlers/**"
2022-05-03 18:45:34 +00:00
- "!crawlers/deploy/**"
2021-08-03 12:22:06 +00:00
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Upgrade pip and setuptools
run: pip install --upgrade pip setuptools
2021-08-03 12:22:06 +00:00
- name: Install test requirements
working-directory: ./crawlers/mooncrawl
2021-08-03 12:22:06 +00:00
run: pip install -e .[dev]
2021-08-24 14:13:20 +00:00
- name: Mypy type check
2021-08-24 15:58:43 +00:00
working-directory: ./crawlers/mooncrawl
2021-08-24 14:13:20 +00:00
run: mypy mooncrawl/
2021-08-03 12:22:06 +00:00
- name: Black syntax check
working-directory: ./crawlers/mooncrawl
2021-08-09 16:11:38 +00:00
run: black --check mooncrawl/