Skip to content

Commit

Permalink
build: copier-auto-update
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKing committed Nov 21, 2023
1 parent 49784bf commit fb8c164
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 108 deletions.
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Answer file maintained by Copier for: https://github.com/KyleKing/calcipy_template
# DO NOT MODIFY THIS FILE. Edit by re-running copier and changing responses to the questions
# Check into version control.
_commit: 1.9.1
_commit: 1.9.3
_src_path: gh:KyleKing/calcipy_template
author_email: dev.act.kyle@gmail.com
author_name: Kyle King
Expand Down
29 changes: 2 additions & 27 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ description: Install requested pipx dependencies, configure the system python, a

inputs:
os:
default: ubuntu-22.04
default: ubuntu-latest
pipx-packages:
default: ""
poetry-version:
default: 1.6.1
default: 1.7.1
python-version:
required: true

Expand All @@ -19,36 +19,11 @@ env:
runs:
using: composite
steps:
- name: Setup Local Variables
id: variable-setup
run: |
echo "pipx-home=$PIPX_HOME" >> $GITHUB_OUTPUT
echo "pipx-bin-dir=$PIPX_BIN_DIR" >> $GITHUB_OUTPUT
export BASE64_PIPX_ID=$(echo -n 'poetry==${{ inputs.poetry-version }} ${{ inputs.pipx-packages }}' | base64)
echo "cache-key-pipx=pipx-${{ inputs.os }}-${{ inputs.python-version }}-$BASE64_PIPX_ID" >> $GITHUB_OUTPUT
shell: bash

- name: Cache pipx
id: cache-pipx
# cache doesn't have permission to extract to "opt/"
if: ${{ inputs.os != 'macos-latest' }}
uses: actions/cache@v3
with:
# https://pypa.github.io/pipx/how-pipx-works
path: |
${{ steps.variable-setup.outputs.pipx-home }}
${{ steps.variable-setup.outputs.pipx-bin-dir }}
key: ${{ steps.variable-setup.outputs.cache-key-pipx }}

- name: Install Poetry ${{ inputs.poetry-version }} and '${{ inputs.pipx-packages }}'
if: ${{ steps.cache-pipx.outputs.cache-hit != 'true' }}
run: |
for tool in "poetry==${{ inputs.poetry-version }}" ${{ inputs.pipx-packages }}; do
pipx install $tool
done
# Resolves https://github.com/python-poetry/poetry/issues/7611
poetry self add setuptools==68.1.2
shell: bash

- name: Debug pipx
Expand Down
16 changes: 0 additions & 16 deletions .github/codeql-config.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/ci_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
os: [ubuntu-latest]
python-version: ["3.9"]
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
os: [ubuntu-latest]
python-version: ["3.9"]
steps:
- uses: actions/checkout@v4
Expand Down
52 changes: 0 additions & 52 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Run Labeler
if: success()
uses: crazy-max/ghaction-github-labeler@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/update_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,12 @@ permissions:
# Repository contents, commits, branches, downloads, releases, and merges.
contents: write

env:
COLUMNS: 120

jobs:
docs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
os: [ubuntu-latest]
python-version: ["3.9"]
steps:
- uses: actions/checkout@v4
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,17 @@ repos:
- id: shellcheck
args: [--severity=warning]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.3"
rev: "v3.1.0"
hooks:
- id: prettier
additional_dependencies:
# Note: this version must be the same as the hook revision
- "prettier@3.0.3"
- "prettier@3.1.0"
- "prettier-plugin-sh"
exclude: \.copier-answers\.yml|tests/.*/cassettes/.*\.yaml
types_or: [html, javascript, json, shell, yaml]
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.32.0
rev: v1.33.0
hooks:
- id: yamllint
exclude: tests/.*/cassettes/.*\.yaml
Expand All @@ -91,7 +91,7 @@ repos:
args: [--never]
files: calcipy/.*\.py
- repo: https://github.com/KyleKing/calcipy
rev: 2.0.1
rev: 2.0.2
hooks:
- id: copier-forbidden-files
- id: lint-fix
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python 3.11.2 3.9.13
python 3.12.0 3.9.13

0 comments on commit fb8c164

Please sign in to comment.