Skip to content

Commit

Permalink
Merge branch 'next'
Browse files Browse the repository at this point in the history
  • Loading branch information
lxmnk committed Mar 21, 2022
2 parents e670feb + a8e7ebe commit 5f990f9
Show file tree
Hide file tree
Showing 656 changed files with 20,554 additions and 24,736 deletions.
1 change: 0 additions & 1 deletion .github/CODEOWNERS

This file was deleted.

49 changes: 0 additions & 49 deletions .github/workflows/deploy-docs-gh-pages.yml

This file was deleted.

36 changes: 6 additions & 30 deletions .github/workflows/deploy-docs-netlify.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
name: Build and Deploy to Netlify

on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
push

env:
SITE_URL: https://pybotx.netlify.com
Expand All @@ -23,31 +17,13 @@ jobs:
with:
python-version: 3.8

- name: Install poetry
run: |
pip install poetry==1.0
poetry config virtualenvs.in-project true
- name: Set up cache
uses: actions/cache@v1
id: cache
with:
path: .venv
key: venv-${{ runner.os }}-py-${{ matrix.python-version }}-poetry-${{ hashFiles('poetry.lock') }}

- name: Ensure cache is healthy
if: steps.cache.outputs.cache-hit == 'true'
shell: bash
run: poetry run pip --version >/dev/null 2>&1 || rm -rf .venv

- name: Install dependencies
shell: bash
run: poetry install --extras tests
- name: Setup dependencies
uses: ExpressApp/[email protected]

- name: Build MkDocs for Netlify
run: |
poetry run nox -s build-docs
source .venv/bin/activate
mkdocs build
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v1
with:
Expand All @@ -56,4 +32,4 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
54 changes: 54 additions & 0 deletions .github/workflows/python_app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Python application
on: push
jobs:

test:
name: Test
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]

steps:
- name: Setup dependencies
uses: ExpressApp/[email protected]
with:
python-version: ${{ matrix.python-version }}
poetry-version: "1.1.12"

- name: Run tests
env:
BOT_CREDENTIALS: ${{ secrets.END_TO_END_TESTS_BOT_CREDENTIALS }}
run: |
poetry run ./scripts/test --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true
files: ./coverage.xml
flags: unittests

lint:
name: Lint
runs-on: ubuntu-20.04

steps:
- name: Setup dependencies
uses: ExpressApp/[email protected]

- name: Run linters
run: |
poetry run ./scripts/lint
docs-lint:
name: Docs lint
runs-on: ubuntu-20.04

steps:
- name: Setup dependencies
uses: ExpressApp/[email protected]

- name: Run linters
run: |
poetry run ./scripts/docs-lint
43 changes: 0 additions & 43 deletions .github/workflows/styles.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/tests.yml

This file was deleted.

111 changes: 4 additions & 107 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,111 +1,8 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
.venv/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/

__pycache__
htmlcov
site
.idea/
.vscode/

static/

**/.DS_Store
Loading

2 comments on commit 5f990f9

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://pybotx.netlify.app as production
🚀 Deployed on https://6238601d736667174e297b5a--pybotx.netlify.app

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.