.github/workflows/pyci-check.yml
name: CI check
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
# make depends on poetry
- name: Install dependencies
run: |
pip install poetry
make install
- name: Run linter
run: |
make lint
- name: Run Tests
run: |
make test
- name: Test & publish code coverage
uses: paambaati/codeclimate-action@v3.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.TEST_COVERAGE_LVL2 }}
with:
coverageCommand: make test-coverage
debug: true