Skip to content

Commit 34196b1

Browse files
repo-helper[bot]domdfcoding
authored andcommitted
Updated files with 'repo_helper'. (#60)
Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com> (cherry picked from commit 931592e)
1 parent 607abba commit 34196b1

File tree

12 files changed

+213
-107
lines changed

12 files changed

+213
-107
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ If possible, please include a small, self-contained reproduction.
4444
* domdf_python_tools:
4545

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

4949

5050
## Other Additional Information:

.github/actions_build_conda.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
set -e -x
55

6-
python -m mkrecipe || exit 1
6+
python -m mkrecipe --type wheel || exit 1
77

88
# Switch to miniconda
99
source "/home/runner/miniconda/etc/profile.d/conda.sh"

.github/workflows/conda_ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
push:
77
branches: ["master"]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
tests:
1114
name: "Conda"

.github/workflows/docs_test_action.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,29 @@ name: "Docs Check"
44
on:
55
- push
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
docs:
912
runs-on: ubuntu-latest
1013
steps:
1114
- name: Checkout 🛎️
1215
uses: "actions/checkout@v1"
16+
17+
- name: Check for changed files
18+
uses: dorny/paths-filter@v2
19+
id: changes
20+
with:
21+
list-files: "json"
22+
filters: |
23+
code:
24+
- '!tests/**'
25+
1326
- name: Install and Build 🔧
14-
uses: ammaraskar/sphinx-action@master
27+
uses: sphinx-toolbox/[email protected]
28+
if: steps.changes.outputs.code == 'true'
1529
with:
16-
pre-build-command: apt-get update && apt-get install gcc python3-dev git pandoc -y && python -m pip install tox
30+
pre-build-command: python -m pip install tox
1731
docs-folder: "doc-source/"
1832
build-command: "tox -e docs -- -W "

.github/workflows/flake8.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ name: Flake8
55
on:
66
push:
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
Run:
1013
name: "Flake8"
@@ -14,17 +17,29 @@ jobs:
1417
- name: Checkout 🛎️
1518
uses: "actions/checkout@v2"
1619

20+
- name: Check for changed files
21+
uses: dorny/paths-filter@v2
22+
id: changes
23+
with:
24+
list-files: "json"
25+
filters: |
26+
code:
27+
- '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
28+
1729
- name: Setup Python 🐍
30+
if: steps.changes.outputs.code == 'true'
1831
uses: "actions/setup-python@v2"
1932
with:
20-
python-version: "3.8"
33+
python-version: "3.6"
2134

2235
- name: Install dependencies 🔧
36+
if: steps.changes.outputs.code == 'true'
2337
run: |
2438
python -VV
2539
python -m site
2640
python -m pip install --upgrade pip setuptools wheel
2741
python -m pip install tox
2842
2943
- name: "Run Flake8"
44+
if: steps.changes.outputs.code == 'true'
3045
run: "python -m tox -e lint -- --format github"

.github/workflows/mypy.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ name: mypy
55
on:
66
push:
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
Run:
1013
name: "mypy / ${{ matrix.os }}"
@@ -19,7 +22,17 @@ jobs:
1922
- name: Checkout 🛎️
2023
uses: "actions/checkout@v2"
2124

25+
- name: Check for changed files
26+
uses: dorny/paths-filter@v2
27+
id: changes
28+
with:
29+
list-files: "json"
30+
filters: |
31+
code:
32+
- '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
33+
2234
- name: Setup Python 🐍
35+
if: steps.changes.outputs.code == 'true'
2336
uses: "actions/setup-python@v2"
2437
with:
2538
python-version: "3.6"
@@ -32,4 +45,5 @@ jobs:
3245
python -m pip install --upgrade tox virtualenv
3346
3447
- name: "Run mypy"
48+
if: steps.changes.outputs.code == 'true'
3549
run: "python -m tox -e mypy"

.github/workflows/python_ci.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ name: Windows
55
on:
66
push:
77

8+
permissions:
9+
actions: write
10+
contents: read
11+
812
jobs:
913
tests:
1014
name: "windows-2019 / Python ${{ matrix.config.python-version }}"
1115
runs-on: "windows-2019"
1216
continue-on-error: ${{ matrix.config.experimental }}
1317
env:
14-
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-alpha.6,pypy-3.6,pypy-3.7'
18+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-beta.1,pypy-3.6,pypy-3.7'
1519

1620
strategy:
1721
fail-fast: False
@@ -21,32 +25,46 @@ jobs:
2125
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
2226
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
2327
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
24-
- {python-version: "3.10.0-alpha.6", testenvs: "py310-dev,build", experimental: True}
28+
- {python-version: "3.10.0-beta.1", testenvs: "py310-dev,build", experimental: True}
2529
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
2630
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
2731

2832
steps:
2933
- name: Checkout 🛎️
3034
uses: "actions/checkout@v2"
3135

36+
- name: Check for changed files
37+
if: startsWith(github.ref, 'refs/tags/') != true
38+
uses: dorny/paths-filter@v2
39+
id: changes
40+
with:
41+
list-files: "json"
42+
filters: |
43+
code:
44+
- '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
45+
3246
- name: Setup Python 🐍
47+
id: setup-python
48+
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
3349
uses: "actions/setup-python@v2"
3450
with:
3551
python-version: "${{ matrix.config.python-version }}"
3652

3753
- name: Install dependencies 🔧
54+
if: steps.setup-python.outcome == 'success'
3855
run: |
3956
python -VV
4057
python -m site
4158
python -m pip install --upgrade pip setuptools wheel
4259
python -m pip install --upgrade tox virtualenv
4360
4461
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
62+
if: steps.setup-python.outcome == 'success'
4563
run: python -m tox -e "${{ matrix.config.testenvs }}"
4664

4765
- name: "Upload Coverage 🚀"
4866
uses: actions/upload-artifact@v2
49-
if: ${{ always() }}
67+
if: ${{ always() && steps.setup-python.outcome == 'success' }}
5068
with:
5169
name: "coverage-${{ matrix.config.python-version }}"
5270
path: .coverage

.github/workflows/python_ci_linux.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ name: Linux
55
on:
66
push:
77

8+
permissions:
9+
actions: write
10+
contents: read
11+
812
jobs:
913
tests:
1014
name: "ubuntu-20.04 / Python ${{ matrix.config.python-version }}"
1115
runs-on: "ubuntu-20.04"
1216
continue-on-error: ${{ matrix.config.experimental }}
1317
env:
14-
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-alpha.6,pypy-3.6,pypy-3.7'
18+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-beta.1,pypy-3.6,pypy-3.7'
1519

1620
strategy:
1721
fail-fast: False
@@ -21,20 +25,33 @@ jobs:
2125
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
2226
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
2327
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
24-
- {python-version: "3.10.0-alpha.6", testenvs: "py310-dev,build", experimental: True}
28+
- {python-version: "3.10.0-beta.1", testenvs: "py310-dev,build", experimental: True}
2529
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
2630
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
2731

2832
steps:
2933
- name: Checkout 🛎️
3034
uses: "actions/checkout@v2"
3135

36+
- name: Check for changed files
37+
if: startsWith(github.ref, 'refs/tags/') != true
38+
uses: dorny/paths-filter@v2
39+
id: changes
40+
with:
41+
list-files: "json"
42+
filters: |
43+
code:
44+
- '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
45+
3246
- name: Setup Python 🐍
47+
id: setup-python
48+
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
3349
uses: "actions/setup-python@v2"
3450
with:
3551
python-version: "${{ matrix.config.python-version }}"
3652

3753
- name: Install dependencies 🔧
54+
if: steps.setup-python.outcome == 'success'
3855
run: |
3956
python -VV
4057
python -m site
@@ -43,11 +60,12 @@ jobs:
4360
python -m pip install --upgrade coverage_pyver_pragma
4461
4562
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
63+
if: steps.setup-python.outcome == 'success'
4664
run: python -m tox -e "${{ matrix.config.testenvs }}"
4765

4866
- name: "Upload Coverage 🚀"
4967
uses: actions/upload-artifact@v2
50-
if: ${{ always() }}
68+
if: ${{ always() && steps.setup-python.outcome == 'success' }}
5169
with:
5270
name: "coverage-${{ matrix.config.python-version }}"
5371
path: .coverage

.github/workflows/python_ci_macos.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ name: macOS
55
on:
66
push:
77

8+
permissions:
9+
actions: write
10+
contents: read
11+
812
jobs:
913
tests:
1014
name: "macos-latest / Python ${{ matrix.config.python-version }}"
1115
runs-on: "macos-latest"
1216
continue-on-error: ${{ matrix.config.experimental }}
1317
env:
14-
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-alpha.6,pypy-3.6,pypy-3.7'
18+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-beta.1,pypy-3.6,pypy-3.7'
1519

1620
strategy:
1721
fail-fast: False
@@ -21,32 +25,46 @@ jobs:
2125
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
2226
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
2327
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
24-
- {python-version: "3.10.0-alpha.6", testenvs: "py310-dev,build", experimental: True}
28+
- {python-version: "3.10.0-beta.1", testenvs: "py310-dev,build", experimental: True}
2529
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
2630
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
2731

2832
steps:
2933
- name: Checkout 🛎️
3034
uses: "actions/checkout@v2"
3135

36+
- name: Check for changed files
37+
if: startsWith(github.ref, 'refs/tags/') != true
38+
uses: dorny/paths-filter@v2
39+
id: changes
40+
with:
41+
list-files: "json"
42+
filters: |
43+
code:
44+
- '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
45+
3246
- name: Setup Python 🐍
47+
id: setup-python
48+
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
3349
uses: "actions/setup-python@v2"
3450
with:
3551
python-version: "${{ matrix.config.python-version }}"
3652

3753
- name: Install dependencies 🔧
54+
if: steps.setup-python.outcome == 'success'
3855
run: |
3956
python -VV
4057
python -m site
4158
python -m pip install --upgrade pip setuptools wheel
4259
python -m pip install --upgrade tox virtualenv
4360
4461
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
62+
if: steps.setup-python.outcome == 'success'
4563
run: python -m tox -e "${{ matrix.config.testenvs }}"
4664

4765
- name: "Upload Coverage 🚀"
4866
uses: actions/upload-artifact@v2
49-
if: ${{ always() }}
67+
if: ${{ always() && steps.setup-python.outcome == 'success' }}
5068
with:
5169
name: "coverage-${{ matrix.config.python-version }}"
5270
path: .coverage

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ repos:
6262
- --keep-runtime-typing
6363

6464
- repo: https://github.com/Lucas-C/pre-commit-hooks
65-
rev: v1.1.9
65+
rev: v1.1.10
6666
hooks:
6767
- id: remove-crlf
6868
- id: forbid-crlf

0 commit comments

Comments
 (0)