Bump the version to 0.2.0 #42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous integration | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
test: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Cache pip packages | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-pip-modules | |
with: | |
path: ~/.pip-cache | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/requirements-dev.txt') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Install dependencies | |
run: | | |
pip install -r requirements-dev.txt pytest-cov | |
pip install -e . | |
- name: Run tests | |
run: pytest -ra -vv --doctest-modules --cov=. | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
build: | |
name: Build package | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: pip install -U setuptools wheel build | |
- name: Build | |
run: python -m build . | |
black: | |
name: Coding style - black | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Run black | |
uses: psf/black@stable | |
with: | |
args: ". --check" | |
flake8: | |
name: Coding style - flake8 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: pip install flake8 pep8-naming flake8-bugbear | |
- name: Run flake8 | |
uses: liskin/gh-problem-matcher-wrap@v1 | |
with: | |
linters: flake8 | |
run: flake8 | |
isort: | |
name: Coding style - isort | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: pip install isort | |
- name: Run isort | |
uses: liskin/gh-problem-matcher-wrap@v1 | |
with: | |
linters: isort | |
run: isort -c . |