kopia lustrzana https://github.com/bugout-dev/moonstream
28 wiersze
662 B
YAML
28 wiersze
662 B
YAML
name: Lint Moonstream crawlers
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- "main"
|
|
paths:
|
|
- "crawlers/**"
|
|
|
|
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: Install test requirements
|
|
working-directory: ./crawlers/mooncrawl
|
|
run: pip install -e .[dev]
|
|
- name: Mypy type check
|
|
working-directory: ./crawlers/mooncrawl
|
|
run: mypy mooncrawl/
|
|
- name: Black syntax check
|
|
working-directory: ./crawlers/mooncrawl
|
|
run: black --check mooncrawl/
|