Skip to content

Update commands.py #133

Update commands.py

Update commands.py #133

Workflow file for this run

name: Test and Lint
on:
pull_request:
push:
paths-ignore:
- "**.md"
jobs:
test-and-lint:
name: test and lint
runs-on: ubuntu-latest
services:
postgres:
image: postgres:10
env:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: wechat
ports:
- 5432:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.6
- uses: Gr1N/setup-poetry@v4
with:
poetry-version: 1.1.6
- uses: allanchain/poetry-cache-action@release
with:
replace-mirror: pypi.tuna.tsinghua.edu.cn/pypi.org
- name: Run test
run: poetry run python scripts/auto_coverage.py
- name: Upload coverage
run: bash <(curl -s https://codecov.io/bash)
- name: Lint with pre-commit
run: poetry run pre-commit run -a --show-diff-on-failure --color=always