Skip to content

Commit

Permalink
Updated files with 'repo_helper'. (#45)
Browse files Browse the repository at this point in the history
Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com>
  • Loading branch information
repo-helper[bot] committed Jul 14, 2021
1 parent ff9a22f commit fa03912
Show file tree
Hide file tree
Showing 13 changed files with 138 additions and 38 deletions.
4 changes: 2 additions & 2 deletions .bumpversion.cfg
Expand Up @@ -5,8 +5,6 @@ tag = True

[bumpversion:file:repo_helper.yml]

[bumpversion:file:__pkginfo__.py]

[bumpversion:file:README.rst]

[bumpversion:file:repo_helper_github/__init__.py]
Expand All @@ -16,3 +14,5 @@ replace = str = "{new_version}"
[bumpversion:file:doc-source/index.rst]

[bumpversion:file:pyproject.toml]
search = version = "{current_version}"
replace = version = "{new_version}"
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Expand Up @@ -44,7 +44,7 @@ If possible, please include a small, self-contained reproduction.
* repo_helper_github:

## Installation source
<!-- e.g. Github repository, Github Releases, PyPI/pip, Anaconda/conda -->
<!-- e.g. GitHub repository, GitHub Releases, PyPI/pip, Anaconda/conda -->


## Other Additional Information:
Expand Down
2 changes: 1 addition & 1 deletion .github/stale.yml
Expand Up @@ -28,7 +28,7 @@ exemptMilestones: false
exemptAssignees: false

# Label to use when marking as stale
staleLabel: wontfix
staleLabel: stale

# Comment to post when marking as stale. Set to `false` to disable
markComment: >
Expand Down
21 changes: 18 additions & 3 deletions .github/workflows/docs_test_action.yml
Expand Up @@ -2,17 +2,32 @@
---
name: "Docs Check"
on:
- push
push:
pull_request:

permissions:
contents: read

jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: "actions/checkout@v1"

- name: Check for changed files
uses: dorny/paths-filter@v2
id: changes
with:
list-files: "json"
filters: |
code:
- '!tests/**'
- name: Install and Build 🔧
uses: ammaraskar/sphinx-action@master
uses: sphinx-toolbox/sphinx-action@sphinx-3.3.1
if: steps.changes.outputs.code == 'true'
with:
pre-build-command: apt-get update && apt-get install gcc python3-dev git pandoc -y && python -m pip install tox
pre-build-command: python -m pip install tox
docs-folder: "doc-source/"
build-command: "tox -e docs -- "
20 changes: 18 additions & 2 deletions .github/workflows/flake8.yml
Expand Up @@ -4,6 +4,10 @@ name: Flake8

on:
push:
pull_request:

permissions:
contents: read

jobs:
Run:
Expand All @@ -14,17 +18,29 @@ jobs:
- name: Checkout 🛎️
uses: "actions/checkout@v2"

- name: Check for changed files
uses: dorny/paths-filter@v2
id: changes
with:
list-files: "json"
filters: |
code:
- '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
- name: Setup Python 🐍
if: steps.changes.outputs.code == 'true'
uses: "actions/setup-python@v2"
with:
python-version: "3.8"
python-version: "3.6"

- name: Install dependencies 🔧
if: steps.changes.outputs.code == 'true'
run: |
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install tox
- name: "Run Flake8"
run: "python -m tox -e lint -- --format github"
if: steps.changes.outputs.code == 'true'
run: "python -m tox -e lint -s false -- --format github"
17 changes: 16 additions & 1 deletion .github/workflows/mypy.yml
Expand Up @@ -4,6 +4,10 @@ name: mypy

on:
push:
pull_request:

permissions:
contents: read

jobs:
Run:
Expand All @@ -19,7 +23,17 @@ jobs:
- name: Checkout 🛎️
uses: "actions/checkout@v2"

- name: Check for changed files
uses: dorny/paths-filter@v2
id: changes
with:
list-files: "json"
filters: |
code:
- '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
- name: Setup Python 🐍
if: steps.changes.outputs.code == 'true'
uses: "actions/setup-python@v2"
with:
python-version: "3.6"
Expand All @@ -32,4 +46,5 @@ jobs:
python -m pip install --upgrade tox virtualenv
- name: "Run mypy"
run: "python -m tox -e mypy"
if: steps.changes.outputs.code == 'true'
run: "python -m tox -e mypy -s false"
27 changes: 23 additions & 4 deletions .github/workflows/python_ci.yml
Expand Up @@ -4,14 +4,19 @@ name: Windows

on:
push:
pull_request:

permissions:
actions: write
contents: read

jobs:
tests:
name: "windows-2019 / Python ${{ matrix.config.python-version }}"
runs-on: "windows-2019"
continue-on-error: ${{ matrix.config.experimental }}
env:
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-alpha.7,pypy-3.6,pypy-3.7'
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-beta.3,pypy-3.6,pypy-3.7'

strategy:
fail-fast: False
Expand All @@ -21,32 +26,46 @@ jobs:
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
- {python-version: "3.10.0-alpha.7", testenvs: "py310-dev,build", experimental: True}
- {python-version: "3.10.0-beta.3", testenvs: "py310-dev,build", experimental: True}
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}

steps:
- name: Checkout 🛎️
uses: "actions/checkout@v2"

- name: Check for changed files
if: startsWith(github.ref, 'refs/tags/') != true
uses: dorny/paths-filter@v2
id: changes
with:
list-files: "json"
filters: |
code:
- '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
- name: Setup Python 🐍
id: setup-python
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
uses: "actions/setup-python@v2"
with:
python-version: "${{ matrix.config.python-version }}"

- name: Install dependencies 🔧
if: steps.setup-python.outcome == 'success'
run: |
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade tox virtualenv
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
run: python -m tox -e "${{ matrix.config.testenvs }}"
if: steps.setup-python.outcome == 'success'
run: python -m tox -e "${{ matrix.config.testenvs }}" -s false

- name: "Upload Coverage 🚀"
uses: actions/upload-artifact@v2
if: ${{ always() }}
if: ${{ always() && steps.setup-python.outcome == 'success' }}
with:
name: "coverage-${{ matrix.config.python-version }}"
path: .coverage
27 changes: 23 additions & 4 deletions .github/workflows/python_ci_linux.yml
Expand Up @@ -4,14 +4,19 @@ name: Linux

on:
push:
pull_request:

permissions:
actions: write
contents: read

jobs:
tests:
name: "ubuntu-20.04 / Python ${{ matrix.config.python-version }}"
runs-on: "ubuntu-20.04"
continue-on-error: ${{ matrix.config.experimental }}
env:
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-alpha.7,pypy-3.6,pypy-3.7'
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-beta.3,pypy-3.6,pypy-3.7'

strategy:
fail-fast: False
Expand All @@ -21,20 +26,33 @@ jobs:
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
- {python-version: "3.10.0-alpha.7", testenvs: "py310-dev,build", experimental: True}
- {python-version: "3.10.0-beta.3", testenvs: "py310-dev,build", experimental: True}
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}

steps:
- name: Checkout 🛎️
uses: "actions/checkout@v2"

- name: Check for changed files
if: startsWith(github.ref, 'refs/tags/') != true
uses: dorny/paths-filter@v2
id: changes
with:
list-files: "json"
filters: |
code:
- '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
- name: Setup Python 🐍
id: setup-python
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
uses: "actions/setup-python@v2"
with:
python-version: "${{ matrix.config.python-version }}"

- name: Install dependencies 🔧
if: steps.setup-python.outcome == 'success'
run: |
python -VV
python -m site
Expand All @@ -43,11 +61,12 @@ jobs:
python -m pip install --upgrade coverage_pyver_pragma
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
run: python -m tox -e "${{ matrix.config.testenvs }}"
if: steps.setup-python.outcome == 'success'
run: python -m tox -e "${{ matrix.config.testenvs }}" -s false

- name: "Upload Coverage 🚀"
uses: actions/upload-artifact@v2
if: ${{ always() }}
if: ${{ always() && steps.setup-python.outcome == 'success' }}
with:
name: "coverage-${{ matrix.config.python-version }}"
path: .coverage
Expand Down
27 changes: 23 additions & 4 deletions .github/workflows/python_ci_macos.yml
Expand Up @@ -4,14 +4,19 @@ name: macOS

on:
push:
pull_request:

permissions:
actions: write
contents: read

jobs:
tests:
name: "macos-latest / Python ${{ matrix.config.python-version }}"
runs-on: "macos-latest"
continue-on-error: ${{ matrix.config.experimental }}
env:
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-alpha.7,pypy-3.6,pypy-3.7'
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-beta.3,pypy-3.6,pypy-3.7'

strategy:
fail-fast: False
Expand All @@ -21,32 +26,46 @@ jobs:
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
- {python-version: "3.10.0-alpha.7", testenvs: "py310-dev,build", experimental: True}
- {python-version: "3.10.0-beta.3", testenvs: "py310-dev,build", experimental: True}
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}

steps:
- name: Checkout 🛎️
uses: "actions/checkout@v2"

- name: Check for changed files
if: startsWith(github.ref, 'refs/tags/') != true
uses: dorny/paths-filter@v2
id: changes
with:
list-files: "json"
filters: |
code:
- '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
- name: Setup Python 🐍
id: setup-python
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
uses: "actions/setup-python@v2"
with:
python-version: "${{ matrix.config.python-version }}"

- name: Install dependencies 🔧
if: steps.setup-python.outcome == 'success'
run: |
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade tox virtualenv
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
run: python -m tox -e "${{ matrix.config.testenvs }}"
if: steps.setup-python.outcome == 'success'
run: python -m tox -e "${{ matrix.config.testenvs }}" -s false

- name: "Upload Coverage 🚀"
uses: actions/upload-artifact@v2
if: ${{ always() }}
if: ${{ always() && steps.setup-python.outcome == 'success' }}
with:
name: "coverage-${{ matrix.config.python-version }}"
path: .coverage
11 changes: 8 additions & 3 deletions .pre-commit-config.yaml
Expand Up @@ -4,6 +4,11 @@
exclude: ^$

repos:
- repo: https://github.com/repo-helper/pyproject-parser
rev: v0.3.0
hooks:
- id: reformat-pyproject

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
Expand Down Expand Up @@ -41,7 +46,7 @@ repos:
files: ^repo_helper_github/.*\.py$

- repo: https://github.com/domdfcoding/flake2lint
rev: v0.4.0
rev: v0.4.1
hooks:
- id: flake2lint

Expand All @@ -62,13 +67,13 @@ repos:
- --keep-runtime-typing

- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.9
rev: v1.1.10
hooks:
- id: remove-crlf
- id: forbid-crlf

- repo: https://github.com/repo-helper/formate
rev: v0.4.3
rev: v0.4.9
hooks:
- id: formate
exclude: ^(doc-source/conf|__pkginfo__|setup)\.(_)?py$
Expand Down

0 comments on commit fa03912

Please sign in to comment.