Skip to content

Commit

Permalink
use westerveltco/setup-ci-action composite action (#46)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
joshuadavidthomas and pre-commit-ci[bot] authored Feb 18, 2024
1 parent 497e0b7 commit 49d286b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 19 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
- uses: westerveltco/[email protected]
with:
python-version: "3.8"
cache: "pip"
allow-prereleases: true

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements-dev.lock
python-requirements: "requirements-dev.lock"

- name: Run tests
run: |
Expand Down
18 changes: 11 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]

### Added

- Now using [`westerveltco/setup-ci-action`](https://github.com/westereltco/setup-ci-action) for common Python and Node.js CI/CD setup. This action sets up a Python and Node.js environment with caching and installs all dependencies for a project.

### Changed

- Django commands in CI/CD now use `--skip-checks` and/or `--no-input` where possible.
Expand Down Expand Up @@ -62,12 +66,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

- `admin_email` help text in `copier.yml` updated to be more clear that it's the destination for emails sent to Admins. This is primarily only used in the `templates/.well-known/security.txt` file at the moment.
- All `pre-commit` hooks have been updated to use the latest versions of the tools.
- `django-upgrade` to 1.16.0
- `language-formatters-pre-commit-hooks` to v2.12.0
- `prettier` to v4.0.0-alpha.8
- `ruff-pre-commit` to 0.2.1
- `rustywind` to 0.21.0
- `validate-pyproject` to v0.16
- `django-upgrade` to 1.16.0
- `language-formatters-pre-commit-hooks` to v2.12.0
- `prettier` to v4.0.0-alpha.8
- `ruff-pre-commit` to 0.2.1
- `rustywind` to 0.21.0
- `validate-pyproject` to v0.16
- `djhtml` has been swapped out in favor of `djLint` for HTML formatting.
- `pyproject.toml` has been linted and formatted.
- Favicon view in `core.views` now uses `django.contrib.staticfiles` to find the favicon file.
Expand Down Expand Up @@ -96,7 +100,7 @@ Initial release! 🎉
- Initial tests.
- Initial CI/CD (GitHub Actions).

### New Contributors!
### New Contributors

- Josh Thomas <[email protected]> (maintainer)

Expand Down
6 changes: 3 additions & 3 deletions examples/with_vite/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ tag = false
version_pattern = "YYYY.MM.INC1"

[tool.bumpver.file_patterns]
"with_vite/__init__.py" = [
'__version__ = "{version}"'
]
"tests/test_version.py" = [
'assert __version__ == "{version}"'
]
"with_vite/__init__.py" = [
'__version__ = "{version}"'
]

[tool.coverage.report]
exclude_lines = [
Expand Down

0 comments on commit 49d286b

Please sign in to comment.