Skip to content

Commit

Permalink
Merge pull request #2 from volopivoshenko/no-issue
Browse files Browse the repository at this point in the history
no-issue
  • Loading branch information
pivoshenko authored Sep 21, 2022
2 parents 6cf9087 + 826505d commit 3c0c012
Show file tree
Hide file tree
Showing 16 changed files with 991 additions and 265 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Continuous deployment workflow
# - Create release
# - Build package
# - Deploy package on GitHub and PYPI
# - Send notification
#
# Requires GitHub secrets
# - GITHUB_TOKEN
Expand Down Expand Up @@ -39,9 +40,8 @@ jobs:
- name: Install dependencies
id: install-dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry python-semantic-release
python -m poetry install --no-dev
python -m pip install -U pip setuptools poetry
python -m poetry install
- name: Semantic release
id: semantic-release
Expand Down
22 changes: 10 additions & 12 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CI workflow
# - Run linters (flake8, mypy, security)
# - Run tests (doctests, unittests)
# - Run code linters
# - Run tests
#
# Requires GitHub secrets
# - CODECOV_TOKEN
Expand Down Expand Up @@ -33,28 +33,27 @@ jobs:
- name: Install dependencies
id: install-dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
python -m pip install -U pip setuptools poetry
python -m poetry install
- name: Run flake8
id: run-flake8
run: |
python -m poetry run poe lint-flake8
python -m poetry run poe flake8
- name: Run mypy
id: run-mypy
run: |
python -m poetry run poe lint-mypy
python -m poetry run poe mypy
tests:
name: Run tests
needs: linters
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
python-version: [ "3.7", "3.8", "3.9", "3.10" ]
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.7", "3.8", "3.9", "3.10"]
steps:
- name: Checkout repository
id: checkout-repository
Expand All @@ -72,12 +71,11 @@ jobs:
- name: Install dependencies
id: install-dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
python -m pip install -U pip setuptools poetry
python -m poetry install
- name: Run pytest | xdoctest
id: run-pytest-xdoctest
- name: Run pytest
id: run-pytest
run: |
python -m poetry run poe tests
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ celerybeat.pid

# Environments
.env
*.env
.env.*
.venv
env/
venv/
Expand Down Expand Up @@ -134,3 +136,6 @@ dmypy.json

# OS
.DS_Store

# tests
tests/fixtures
5 changes: 0 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ default_language_version:
python: python3.9

repos:
- repo: /~https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier

- repo: /~https://github.com/pycqa/isort
rev: 5.10.1
hooks:
Expand Down
19 changes: 0 additions & 19 deletions docs/Makefile

This file was deleted.

68 changes: 0 additions & 68 deletions docs/conf.py

This file was deleted.

35 changes: 0 additions & 35 deletions docs/make.bat

This file was deleted.

Empty file removed docs/static/assets/.gitkeep
Empty file.
Empty file removed docs/static/css/.gitkeep
Empty file.
Loading

0 comments on commit 3c0c012

Please sign in to comment.