Skip to content

v1.1.5

v1.1.5 #62

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
install_with_pip3:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Install with pip3
run: |
pip3 install .
pip3 show item_synchronizer
unittests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
python-version: ["3.8", "3.9"]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Python Poetry Action
uses: abatilo/actions-poetry@v2.1.3
- name: Install prerequisites
run: poetry install
- name: Run tests
run: poetry run pytest --doctest-modules
style_and_linters:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Python Poetry Action
uses: abatilo/actions-poetry@v2.1.3
- name: Install prerequisites
run: poetry install
- name: Run style checkers and linters
run: poetry run pre-commit run --all-files
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Python Poetry Action
uses: abatilo/actions-poetry@v2.1.3
- name: Install prerequisites
run: poetry install
- name: Coverage
run: |
poetry run coverage run -m pytest --doctest-modules
poetry run coverage report
- name: Coveralls
run: poetry run coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
publish_package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Publish package to pypi
uses: JRubics/poetry-publish@v1.9
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
with:
pypi_token: ${{ secrets.PYPI_API_TOKEN }}