Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature update gh actions #539

Merged
merged 4 commits into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3.5.2
uses: actions/checkout@v4.1.1

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pre-commit-autoupdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
name: autoupdate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.2
- uses: actions/checkout@v4.1.1
with:
ref: develop

- name: Set up Python 3.8
uses: actions/setup-python@v4.6.1
uses: actions/setup-python@v4.7.1
with:
python-version: 3.8

Expand All @@ -32,7 +32,7 @@ jobs:
- name: Run pre-commit
run: poetry run pre-commit run --all-files

- uses: peter-evans/[email protected].1
- uses: peter-evans/[email protected].2
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: chore-update-pre-commit-hooks
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: Create Github Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.2
- uses: actions/checkout@v4.1.1

- name: Get version from tag
id: tag_name
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.2
- uses: actions/checkout@v4.1.1

- name: Set up Python 3.8
uses: actions/setup-python@v4.6.1
uses: actions/setup-python@v4.7.1
with:
python-version: 3.8

Expand All @@ -42,10 +42,10 @@ jobs:
python-version: ['3.8', '3.9', '3.10', '3.11']
fail-fast: true
steps:
- uses: actions/checkout@v3.5.2
- uses: actions/checkout@v4.1.1

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.6.1
uses: actions/setup-python@v4.7.1
with:
python-version: ${{ matrix.python-version }}

Expand Down
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0


## [Unreleased]
### Changed
- actions/setup-python from `v4.6.1` to `v4.7.1`.
- actions/checkout from `v3.5.2` to `v4.1.1`.
- peter-evans/create-pull-request from `v5.0.1` to `v5.0.2`.
- pypa/gh-action-pypi-publish from from `v1.4.2` to `v1.8.10`.

### Fixed
- readthedocs config.

## [2.3.0] - 2023-05-28

### Changed
- Reorganized dev dependencies into groups.
- Renamed invoke safety task to invoke security.
- flakeheaven pre-coomit hook with local deps.

## [2.2.1] - 2023-05-25

### Changed
- Moved mypy configurations from `mypy.ini` to `pyproject.toml`.
- Moved poetry `dev-dependencies` to `group.dev.dependencies`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3.5.2
uses: actions/checkout@v4.1.1

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
name: autoupdate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.2
- uses: actions/checkout@v4.1.1

- name: Set up Python 3.8
uses: actions/setup-python@v4.6.1
uses: actions/setup-python@v4.7.1
with:
python-version: 3.8

Expand All @@ -30,7 +30,7 @@ jobs:
- name: Run pre-commit
run: poetry run pre-commit run --all-files

- uses: peter-evans/[email protected].1
- uses: peter-evans/[email protected].2
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: chore-update-pre-commit-hooks
Expand Down
10 changes: 5 additions & 5 deletions {{cookiecutter.project_name}}/.github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.2
- uses: actions/checkout@v4.1.1

- name: Set up Python 3.8
uses: actions/setup-python@v4.6.1
uses: actions/setup-python@v4.7.1
with:
python-version: 3.8

Expand All @@ -28,13 +28,13 @@ jobs:
poetry build --ansi
{% if is_open_source %}{% raw %}
- name: Publish package on PyPI
uses: pypa/gh-action-pypi-publish@v1.4.2
uses: pypa/gh-action-pypi-publish@v1.8.10
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

- name: Publish package on TestPyPI
uses: pypa/gh-action-pypi-publish@v1.4.2
uses: pypa/gh-action-pypi-publish@v1.8.10
with:
user: __token__
password: ${{ secrets.TEST_PYPI_TOKEN }}
Expand All @@ -46,7 +46,7 @@ jobs:
name: Create Github Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.2
- uses: actions/checkout@v4.1.1

- name: Get version from tag
id: tag_name
Expand Down
12 changes: 6 additions & 6 deletions {{cookiecutter.project_name}}/.github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.2
- uses: actions/checkout@v4.1.1

- name: Set up Python 3.8
uses: actions/setup-python@v4.6.1
uses: actions/setup-python@v4.7.1
with:
python-version: 3.8

Expand All @@ -39,10 +39,10 @@ jobs:
python-version: ['3.8', '3.9', '3.10', '3.11']
fail-fast: true
steps:
- uses: actions/checkout@v3.5.2
- uses: actions/checkout@v4.1.1

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.6.1
uses: actions/setup-python@v4.7.1
with:
python-version: ${{ matrix.python-version }}

Expand Down Expand Up @@ -76,10 +76,10 @@ jobs:
needs: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.2
- uses: actions/checkout@v4.1.1

- name: Set up Python 3.8
uses: actions/setup-python@v4.6.1
uses: actions/setup-python@v4.7.1
with:
python-version: 3.8

Expand Down