Skip to content

Commit 9b4fc33

Browse files
committed
Fix github actions
1 parent f43627d commit 9b4fc33

5 files changed

Lines changed: 20 additions & 27 deletions

File tree

{{cookiecutter.project_slug}}/.github/workflows/dev.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
# The type of runner that the job will run on
2121
strategy:
2222
matrix:
23-
python-versions: [3.7, 3.8, 3.9]
24-
os: [ubuntu-18.04, macos-latest, windows-latest]
23+
python-versions: ["3.7", "3.8", "3.9", "3.10"]
24+
os: [ubuntu-20.04, macos-latest, windows-latest]
2525
runs-on: ${{ matrix.os }}
2626

2727
# Steps represent a sequence of tasks that will be executed as part of the job
@@ -64,7 +64,7 @@ jobs:
6464
- name: list files
6565
run: ls -l .
6666

67-
- uses: codecov/codecov-action@v1
67+
- uses: codecov/codecov-action@v2
6868
with:
6969
fail_ci_if_error: true
7070
files: coverage.xml

{{cookiecutter.project_slug}}/.github/workflows/release.yml

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ name: release & publish workflow
66
on:
77
# Triggers the workflow on push or pull request events but only for the master branch
88
push:
9-
branch: release
109
tags:
11-
- 'v*'
10+
- "v*.*.*"
1211

1312
# Allows you to run this workflow manually from the Actions tab
1413
workflow_dispatch:
@@ -22,29 +21,21 @@ jobs:
2221

2322
strategy:
2423
matrix:
25-
python-versions: [3.8]
24+
python-versions: [3.9]
2625

2726
# Steps represent a sequence of tasks that will be executed as part of the job
2827
steps:
2928
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
30-
- uses: actions/checkout@v2
31-
32-
- name: generate change log
33-
uses: heinrichreimer/github-changelog-generator-action@v2.1.1
34-
with:
35-
token: ${{ secrets.GITHUB_TOKEN }}
36-
issues: true
37-
issuesWoLabels: true
38-
pullRequests: true
39-
prWoLabels: true
40-
unreleased: true
41-
addSections: '{"documentation":{"prefix":"**Documentation:**","labels":["documentation"]}}'
42-
output: CHANGELOG.md
43-
29+
- name: Checks-out
30+
uses: actions/checkout@v2
31+
- name: "Build Changelog"
32+
id: build_changelog
33+
uses: mikepenz/release-changelog-builder-action@v2.9.0
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4436
- uses: actions/setup-python@v2
4537
with:
4638
python-version: ${{ matrix.python-versions }}
47-
4839
- name: Install dependencies
4940
run: |
5041
python -m pip install --upgrade pip
@@ -80,9 +71,9 @@ jobs:
8071
draft: false
8172
prerelease: false
8273

83-
- name:
74+
- name: create pypi release
8475
uses: pypa/gh-action-pypi-publish@release/v1
8576
with:
8677
user: __token__
8778
password: ${{ secrets.PYPI_API_TOKEN }}
88-
skip_existing: true
79+
skip_existing: true

{{cookiecutter.project_slug}}/docs/installation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ To install {{ cookiecutter.project_name }}, run this command in your
66
terminal:
77

88
``` console
9-
$ pip install {{ cookiecutter.project_slug }}
9+
pip install {{ cookiecutter.project_slug }}
1010
```
1111

1212
This is the preferred method to install {{ cookiecutter.project_name
@@ -23,19 +23,19 @@ the [Github repo][].
2323
You can either clone the public repository:
2424

2525
``` console
26-
$ git clone git://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.project_slug }}
26+
git clone git://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.project_slug }}
2727
```
2828

2929
Or download the [tarball][]:
3030

3131
``` console
32-
$ curl -OJL https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.project_slug }}/tarball/master
32+
curl -OJL https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.project_slug }}/tarball/master
3333
```
3434

3535
Once you have a copy of the source, you can install it with:
3636

3737
``` console
38-
$ pip install .
38+
pip install .
3939
```
4040

4141
[pip]: https://pip.pypa.io

{{cookiecutter.project_slug}}/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ classifiers=[
2727
'Programming Language :: Python :: 3.7',
2828
'Programming Language :: Python :: 3.8',
2929
'Programming Language :: Python :: 3.9',
30+
'Programming Language :: Python :: 3.10',
3031
]
3132
packages = [
3233
{ include = "{{ cookiecutter.project_slug }}" },

{{cookiecutter.project_slug}}/tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ envlist = py37, py38, py39, lint, format
44

55
[gh-actions]
66
python =
7+
3.10: py310
78
3.9: py39
89
3.8: py38
910
3.7: py37

0 commit comments

Comments
 (0)