Skip to content

Commit 55413e6

Browse files
Updated files with 'repo_helper'. (#31)
Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com>
1 parent dd08897 commit 55413e6

18 files changed

+147
-110
lines changed

.bumpversion.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ tag = True
1111

1212
[bumpversion:file:flake8_strftime/__init__.py]
1313

14+
search = : str = "{current_version}"
15+
replace = : str = "{new_version}"
16+
1417
[bumpversion:file:repo_helper.yml]
1518

1619
[bumpversion:file:pyproject.toml]
20+
search = version = "{current_version}"
21+
replace = version = "{new_version}"

.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
* flake8_strftime:
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 repo_helper make-recipe || 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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ name: Conda Tests
44

55
on:
66
push:
7-
pull_request:
87
branches: ["master"]
98

9+
permissions:
10+
contents: read
11+
1012
jobs:
1113
tests:
1214
name: "Conda"

.github/workflows/docs_test_action.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,31 @@
22
---
33
name: "Docs Check"
44
on:
5-
- pull_request
65
- push
76

7+
permissions:
8+
contents: read
9+
810
jobs:
911
docs:
1012
runs-on: ubuntu-latest
1113
steps:
1214
- name: Checkout 🛎️
1315
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+
1426
- name: Install and Build 🔧
15-
uses: ammaraskar/sphinx-action@master
27+
uses: sphinx-toolbox/sphinx-action@sphinx-3.3.1
28+
if: steps.changes.outputs.code == 'true'
1629
with:
17-
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
1831
docs-folder: "doc-source/"
1932
build-command: "tox -e docs -- "

.github/workflows/flake8.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ name: Flake8
44

55
on:
66
push:
7-
pull_request:
8-
branches: ["master"]
7+
8+
permissions:
9+
contents: read
910

1011
jobs:
1112
Run:
@@ -16,17 +17,29 @@ jobs:
1617
- name: Checkout 🛎️
1718
uses: "actions/checkout@v2"
1819

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+
1929
- name: Setup Python 🐍
30+
if: steps.changes.outputs.code == 'true'
2031
uses: "actions/setup-python@v2"
2132
with:
22-
python-version: "3.8"
33+
python-version: "3.6"
2334

2435
- name: Install dependencies 🔧
36+
if: steps.changes.outputs.code == 'true'
2537
run: |
2638
python -VV
2739
python -m site
2840
python -m pip install --upgrade pip setuptools wheel
2941
python -m pip install tox
3042
3143
- name: "Run Flake8"
32-
run: "python -m tox -e lint -- --format github"
44+
if: steps.changes.outputs.code == 'true'
45+
run: "python -m tox -e lint -s false -- --format github"

.github/workflows/mypy.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ name: mypy
44

55
on:
66
push:
7-
pull_request:
8-
branches: ["master"]
7+
8+
permissions:
9+
contents: read
910

1011
jobs:
1112
Run:
@@ -14,14 +15,24 @@ jobs:
1415

1516
strategy:
1617
matrix:
17-
os: ['windows-2019', 'macos-latest', 'ubuntu-20.04']
18+
os: ['ubuntu-20.04', 'windows-2019']
1819
fail-fast: false
1920

2021
steps:
2122
- name: Checkout 🛎️
2223
uses: "actions/checkout@v2"
2324

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+
2434
- name: Setup Python 🐍
35+
if: steps.changes.outputs.code == 'true'
2536
uses: "actions/setup-python@v2"
2637
with:
2738
python-version: "3.6"
@@ -34,4 +45,5 @@ jobs:
3445
python -m pip install --upgrade tox virtualenv
3546
3647
- name: "Run mypy"
37-
run: "python -m tox -e mypy"
48+
if: steps.changes.outputs.code == 'true'
49+
run: "python -m tox -e mypy -s false"

.github/workflows/python_ci.yml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@ name: Windows
44

55
on:
66
push:
7-
pull_request:
8-
branches: ["master"]
7+
8+
permissions:
9+
actions: write
10+
contents: read
911

1012
jobs:
1113
tests:
1214
name: "windows-2019 / Python ${{ matrix.config.python-version }}"
1315
runs-on: "windows-2019"
1416
continue-on-error: ${{ matrix.config.experimental }}
1517
env:
16-
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'
1719

1820
strategy:
1921
fail-fast: False
@@ -23,32 +25,46 @@ jobs:
2325
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
2426
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
2527
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
26-
- {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}
2729
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
2830
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
2931

3032
steps:
3133
- name: Checkout 🛎️
3234
uses: "actions/checkout@v2"
3335

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+
3446
- name: Setup Python 🐍
47+
id: setup-python
48+
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
3549
uses: "actions/setup-python@v2"
3650
with:
3751
python-version: "${{ matrix.config.python-version }}"
3852

3953
- name: Install dependencies 🔧
54+
if: steps.setup-python.outcome == 'success'
4055
run: |
4156
python -VV
4257
python -m site
4358
python -m pip install --upgrade pip setuptools wheel
4459
python -m pip install --upgrade tox virtualenv
4560
4661
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
47-
run: python -m tox -e "${{ matrix.config.testenvs }}"
62+
if: steps.setup-python.outcome == 'success'
63+
run: python -m tox -e "${{ matrix.config.testenvs }}" -s false
4864

4965
- name: "Upload Coverage 🚀"
5066
uses: actions/upload-artifact@v2
51-
if: ${{ always() }}
67+
if: ${{ always() && steps.setup-python.outcome == 'success' }}
5268
with:
5369
name: "coverage-${{ matrix.config.python-version }}"
5470
path: .coverage

.github/workflows/python_ci_linux.yml

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@ name: Linux
44

55
on:
66
push:
7-
pull_request:
8-
branches: ["master"]
7+
8+
permissions:
9+
actions: write
10+
contents: read
911

1012
jobs:
1113
tests:
1214
name: "ubuntu-20.04 / Python ${{ matrix.config.python-version }}"
1315
runs-on: "ubuntu-20.04"
1416
continue-on-error: ${{ matrix.config.experimental }}
1517
env:
16-
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'
1719

1820
strategy:
1921
fail-fast: False
@@ -23,20 +25,33 @@ jobs:
2325
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
2426
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
2527
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
26-
- {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}
2729
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
2830
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
2931

3032
steps:
3133
- name: Checkout 🛎️
3234
uses: "actions/checkout@v2"
3335

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+
3446
- name: Setup Python 🐍
47+
id: setup-python
48+
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
3549
uses: "actions/setup-python@v2"
3650
with:
3751
python-version: "${{ matrix.config.python-version }}"
3852

3953
- name: Install dependencies 🔧
54+
if: steps.setup-python.outcome == 'success'
4055
run: |
4156
python -VV
4257
python -m site
@@ -45,11 +60,12 @@ jobs:
4560
python -m pip install --upgrade coverage_pyver_pragma
4661
4762
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
48-
run: python -m tox -e "${{ matrix.config.testenvs }}"
63+
if: steps.setup-python.outcome == 'success'
64+
run: python -m tox -e "${{ matrix.config.testenvs }}" -s false
4965

5066
- name: "Upload Coverage 🚀"
5167
uses: actions/upload-artifact@v2
52-
if: ${{ always() }}
68+
if: ${{ always() && steps.setup-python.outcome == 'success' }}
5369
with:
5470
name: "coverage-${{ matrix.config.python-version }}"
5571
path: .coverage
@@ -127,14 +143,13 @@ jobs:
127143

128144
- name: Upload distribution to PyPI 🚀
129145
if: startsWith(github.ref, 'refs/tags/')
130-
uses: pypa/gh-action-pypi-publish@master
146+
uses: pypa/gh-action-pypi-publish@v1.4.2
131147
with:
132148
user: __token__
133149
password: ${{ secrets.PYPI_TOKEN }}
134150
skip_existing: true
135151

136152

137-
138153
Conda:
139154
needs: deploy
140155
runs-on: "ubuntu-20.04"
@@ -151,7 +166,7 @@ jobs:
151166
- name: Install dependencies 🔧
152167
run: |
153168
python -m pip install --upgrade pip setuptools wheel
154-
python -m pip install --upgrade repo_helper
169+
python -m pip install --upgrade mkrecipe
155170
156171
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
157172
bash miniconda.sh -b -p $HOME/miniconda

0 commit comments

Comments
 (0)