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

use list style synatx and cleanup #514

Merged
merged 3 commits into from
Dec 23, 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
6 changes: 1 addition & 5 deletions .github/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,7 @@ branches:
strict: false
contexts:
- ci/woodpecker/pr/lint
- ci/woodpecker/pr/test/1
- ci/woodpecker/pr/test/2
- ci/woodpecker/pr/test/3
- ci/woodpecker/pr/test/4
- ci/woodpecker/pr/test/5
- ci/woodpecker/pr/test
- ci/woodpecker/pr/build-package
- ci/woodpecker/pr/build-container
- ci/woodpecker/pr/docs
Expand Down
13 changes: 6 additions & 7 deletions .woodpecker/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ when:
- ${CI_REPO_DEFAULT_BRANCH}

steps:
build:
- name: build
image: docker.io/library/python:3.12
commands:
- git fetch --depth=2147483647
- pip install poetry poetry-dynamic-versioning -qq
- poetry build

dryrun:
- name: dryrun
image: quay.io/thegeeklab/wp-docker-buildx:2
settings:
containerfile: Containerfile.multiarch
Expand All @@ -26,9 +25,9 @@ steps:
when:
- event: [pull_request]

publish-dockerhub:
group: container
- name: publish-dockerhub
image: quay.io/thegeeklab/wp-docker-buildx:2
group: container
settings:
auto_tag: true
containerfile: Containerfile.multiarch
Expand All @@ -47,9 +46,9 @@ steps:
branch:
- ${CI_REPO_DEFAULT_BRANCH}

publish-quay:
group: container
- name: publish-quay
image: quay.io/thegeeklab/wp-docker-buildx:2
group: container
settings:
auto_tag: true
containerfile: Containerfile.multiarch
Expand Down
21 changes: 9 additions & 12 deletions .woodpecker/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,25 @@ when:
- ${CI_REPO_DEFAULT_BRANCH}

steps:
build:
- name: build
image: docker.io/library/python:3.12
commands:
- git fetch --depth=2147483647
- pip install poetry poetry-dynamic-versioning -qq
- poetry build

checksum:
- name: checksum
image: quay.io/thegeeklab/alpine-tools
commands:
- cd dist/ && sha256sum * > ../sha256sum.txt

changelog:
- name: changelog
image: quay.io/thegeeklab/git-sv
commands:
- git fetch --depth=2147483647
- git sv current-version
- git sv release-notes -t ${CI_COMMIT_TAG:-next} -o CHANGELOG.md
- cat CHANGELOG.md

publish-github:
- name: publish-github
image: docker.io/plugins/github-release
settings:
api_key:
Expand All @@ -40,15 +38,14 @@ steps:
when:
- event: [tag]

publish-pypi:
- name: publish-pypi
image: docker.io/library/python:3.12
secrets:
- source: pypi_password
target: POETRY_HTTP_BASIC_PYPI_PASSWORD
- source: pypi_username
target: POETRY_HTTP_BASIC_PYPI_USERNAME
- source: pypi_password
target: POETRY_HTTP_BASIC_PYPI_PASSWORD
- source: pypi_username
target: POETRY_HTTP_BASIC_PYPI_USERNAME
commands:
- git fetch --depth=2147483647
- pip install poetry poetry-dynamic-versioning -qq
- poetry publish -n
when:
Expand Down
27 changes: 11 additions & 16 deletions .woodpecker/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,49 +6,44 @@ when:
- ${CI_REPO_DEFAULT_BRANCH}

steps:
assets:
- name: assets
image: quay.io/thegeeklab/alpine-tools
commands:
- make doc

markdownlint:
- name: markdownlint
image: quay.io/thegeeklab/markdownlint-cli
group: test
commands:
- markdownlint 'README.md' 'CONTRIBUTING.md'

spellcheck:
- name: spellcheck
image: quay.io/thegeeklab/alpine-tools
group: test
commands:
- spellchecker --files '_docs/**/*.md' 'README.md' 'CONTRIBUTING.md' -d .dictionary -p spell indefinite-article syntax-urls
- spellchecker --files 'docs/**/*.md' 'README.md' 'CONTRIBUTING.md' -d .dictionary -p spell indefinite-article syntax-urls
environment:
FORCE_COLOR: "true"

link-validation:
- name: link-validation
image: docker.io/lycheeverse/lychee
group: test
commands:
- lychee --no-progress --format detailed docs/content README.md

testbuild:
image: quay.io/thegeeklab/hugo:0.115.2
commands:
- hugo --panicOnWarning -s docs/ -b http://localhost:8000/

build:
- name: build
image: quay.io/thegeeklab/hugo:0.115.2
commands:
- hugo --panicOnWarning -s docs/

beautify:
- name: beautify
image: quay.io/thegeeklab/alpine-tools
commands:
- html-beautify -r -f 'docs/public/**/*.html'
environment:
FORCE_COLOR: "true"

publish:
- name: publish
image: quay.io/thegeeklab/wp-s3-action
settings:
access_key:
Expand All @@ -67,9 +62,9 @@ steps:
- event: [push, manual]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
status: [success]
status: [success, failure]

pushrm-dockerhub:
- name: pushrm-dockerhub
image: docker.io/chko/docker-pushrm:1
secrets:
- source: docker_password
Expand All @@ -86,7 +81,7 @@ steps:
- ${CI_REPO_DEFAULT_BRANCH}
status: [success]

pushrm-quay:
- name: pushrm-quay
image: docker.io/chko/docker-pushrm:1
secrets:
- source: quay_token
Expand Down
6 changes: 2 additions & 4 deletions .woodpecker/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,18 @@ when:
- ${CI_REPO_DEFAULT_BRANCH}

steps:
check-format:
- name: check-format
image: docker.io/library/python:3.12
commands:
- git fetch --depth=2147483647
- pip install poetry poetry-dynamic-versioning -qq
- poetry install
- poetry run ruff format --check --diff ./${CI_REPO_NAME//-/}
environment:
PY_COLORS: "1"

check-coding:
- name: check-coding
image: docker.io/library/python:3.12
commands:
- git fetch --depth=2147483647
- pip install poetry poetry-dynamic-versioning -qq
- poetry install
- poetry run ruff ./${CI_REPO_NAME//-/}
Expand Down
2 changes: 1 addition & 1 deletion .woodpecker/notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ when:
runs_on: [success, failure]

steps:
matrix:
- name: matrix
image: quay.io/thegeeklab/wp-matrix
settings:
homeserver:
Expand Down
36 changes: 24 additions & 12 deletions .woodpecker/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,35 @@ when:
branch:
- ${CI_REPO_DEFAULT_BRANCH}

matrix:
PYTHON_VERSION:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"

steps:
pytest:
image: docker.io/library/python:${PYTHON_VERSION}
variables:
- &pytest_base
group: pytest
commands:
- git fetch --depth=2147483647
- pip install poetry poetry-dynamic-versioning -qq
- poetry install
- poetry run pytest --cov-append
- poetry version
- poetry run ${CI_REPO_NAME} --help
environment:
PY_COLORS: "1"

steps:
- name: python-312
image: docker.io/library/python:3.12
<<: *pytest_base

- name: python-311
image: docker.io/library/python:3.11
<<: *pytest_base

- name: python-310
image: docker.io/library/python:3.10
<<: *pytest_base

- name: python-39
image: docker.io/library/python:3.9
<<: *pytest_base

- name: python-38
image: docker.io/library/python:3.8
<<: *pytest_base