From 6c569557f45116b5d4d0fcf309efc11c938ae185 Mon Sep 17 00:00:00 2001 From: Dmitrii Zakharov Date: Fri, 8 Jan 2021 12:27:21 +0300 Subject: [PATCH] ch: Use GitHub Actions #9 --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..67d1bfb --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.8] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install poetry + poetry install --no-interaction --no-ansi + - name: Lint with flake8 + run: | + flake8 --ignore E501 passgen tests + - name: Test with pytest + run: | + py.test --cov=passgen tests/ + coveralls