Skip to content

README update

README update #15

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
linters:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Installing flake8
run: |
pip install poetry
poetry config virtualenvs.create false
poetry install --with dev --no-root
- name: Lint
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 src --show-source --statistics
# exit-zero treats all errors as warnings
flake8 src --count --exit-zero --statistics
integration:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install poetry
poetry config virtualenvs.create false
poetry install --with test --no-root
- name: Run integration tests
run: poetry run pytest src --cov
- name: Upload Codecov
uses: codecov/codecov-action@v3