-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Change rich lower bound pin to >=10.11.0 (#118)
- Loading branch information
Showing
21 changed files
with
1,029 additions
and
939 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Documentation | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
|
||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
miniforge-version: latest | ||
environment-file: conda/dev.yaml | ||
channels: conda-forge,nodefaults | ||
activate-environment: sugar | ||
auto-update-conda: true | ||
conda-solver: libmamba | ||
python-version: "3.8" | ||
|
||
- name: Install deps | ||
run: | | ||
poetry config virtualenvs.create false | ||
poetry install | ||
- name: Generate documentation with changes from semantic-release | ||
run: makim --verbose docs.build | ||
|
||
- name: GitHub Pages action | ||
if: ${{ github.event_name == 'workflow_dispatch' }} | ||
uses: peaceiris/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,45 +3,47 @@ shell: bash | |
groups: | ||
clean: | ||
env-file: .env | ||
targets: | ||
tasks: | ||
all: | ||
help: Remove build artifacts, compiled files, and cache | ||
run: | | ||
rm -f .coverage | ||
rm -fr build/ | ||
rm -fr dist/ | ||
rm -fr .eggs/ | ||
rm -fr htmlcov/ | ||
rm -fr .pytest_cache | ||
rm -fr .ruff_cache | ||
rm -fr .mypy_cache | ||
find . -name '*.egg-info' -exec rm -fr {} + | ||
find . -name '*.egg' -exec rm -f {} + | ||
find . -name '*.pyc' -exec rm -f {} + | ||
find . -name '__pycache__' -exec rm -fr {} + | ||
find . -name '*~' -exec rm -f {} + | ||
rm -f .coverage | ||
rm -fr htmlcov/ | ||
rm -fr .pytest_cache | ||
docs: | ||
help: Commands for building and previewing the documentation | ||
targets: | ||
tasks: | ||
build: | ||
help: Build the documentation | ||
run: mkdocs build --config-file mkdocs.yaml | ||
|
||
preview: | ||
help: Preview the documentation | ||
dependencies: | ||
- target: docs.build | ||
- task: docs.build | ||
run: mkdocs serve --watch docs --config-file mkdocs.yaml | ||
|
||
package: | ||
help: helper commands for handling the package | ||
targets: | ||
tasks: | ||
build: | ||
help: Build the project | ||
run: poetry build | ||
|
||
tests: | ||
help: Test commands | ||
targets: | ||
tasks: | ||
linter: | ||
help: Run lint checks | ||
run: | | ||
|
@@ -55,12 +57,12 @@ groups: | |
help: Extra parameters for pytest | ||
type: str | ||
default: "-vv" | ||
run: pytest -s {{ args.params }} tests | ||
run: pytest -s ${{ args.params }} tests | ||
|
||
smoke-1: | ||
help: Run smoke tests for group 1 | ||
dependencies: | ||
- target: docker.killall | ||
- task: docker.killall | ||
run: | | ||
sugar build --verbose | ||
sugar build --verbose --group group1 --all | ||
|
@@ -79,7 +81,7 @@ groups: | |
smoke-2: | ||
help: Run smoke tests for group 2 | ||
dependencies: | ||
- target: docker.killall | ||
- task: docker.killall | ||
run: | | ||
sugar build --verbose --group group2 --all | ||
sugar build --verbose --group group2 | ||
|
@@ -96,14 +98,14 @@ groups: | |
smoke-services: | ||
help: | ||
dependencies: | ||
- target: docker.killall | ||
- task: docker.killall | ||
run: | | ||
sugar build --verbose --config-file tests/containers/.services.sugar.yaml | ||
smoke-mix: | ||
help: Run smoke tests for group mix | ||
dependencies: | ||
- target: docker.killall | ||
- task: docker.killall | ||
run: | | ||
sugar build --verbose --group group-mix --all | ||
sugar build --verbose --group group-mix | ||
|
@@ -121,7 +123,7 @@ groups: | |
smoke-main: | ||
help: Run smoke tests for group main | ||
dependencies: | ||
- target: docker.killall | ||
- task: docker.killall | ||
run: | | ||
# general tests main profile/plugins | ||
sugar build --verbose --group group1 | ||
|
@@ -147,7 +149,7 @@ groups: | |
smoke-defaults: | ||
help: Run smoke tests for group defaults | ||
dependencies: | ||
- target: docker.killall | ||
- task: docker.killall | ||
run: | | ||
export KXGR_PROJECT_NAME="test-`python -c 'from uuid import uuid4; print(uuid4().hex[:7])'`" | ||
echo $KXGR_PROJECT_NAME | ||
|
@@ -160,7 +162,7 @@ groups: | |
smoke-final: | ||
help: Run final smoke tests | ||
dependencies: | ||
- target: docker.killall | ||
- task: docker.killall | ||
run: | | ||
sugar ext restart --verbose --group group-defaults --options -d | ||
sugar pause --verbose --group group1 | ||
|
@@ -173,21 +175,46 @@ groups: | |
smoke: | ||
help: Run final smoke tests | ||
dependencies: | ||
- target: docker.killall | ||
- target: tests.smoke-1 | ||
- target: tests.smoke-2 | ||
- target: tests.smoke-mix | ||
- target: tests.smoke-main | ||
- target: tests.smoke-defaults | ||
- target: tests.smoke-final | ||
- target: tests.smoke-services | ||
- task: docker.killall | ||
- task: tests.smoke-1 | ||
- task: tests.smoke-2 | ||
- task: tests.smoke-mix | ||
- task: tests.smoke-main | ||
- task: tests.smoke-defaults | ||
- task: tests.smoke-final | ||
- task: tests.smoke-services | ||
run: | | ||
sugar --help | ||
sugar --version | ||
docker: | ||
help: Commands for docker | ||
targets: | ||
tasks: | ||
killall: | ||
help: Kill all running Docker containers | ||
run: docker kill `docker ps -q` || true | ||
|
||
release: | ||
vars: | ||
app: | | ||
npx --yes \ | ||
-p semantic-release \ | ||
-p [email protected] \ | ||
-p "@semantic-release/commit-analyzer" \ | ||
-p "@semantic-release/release-notes-generator" \ | ||
-p "@semantic-release/changelog" \ | ||
-p "@semantic-release/exec" \ | ||
-p "@semantic-release/github" \ | ||
-p "@semantic-release/git" \ | ||
-p "semantic-release-replace-plugin" \ | ||
semantic-release | ||
tasks: | ||
ci: | ||
help: Run semantic-release on CI | ||
run: | | ||
${{ vars.app }} --ci | ||
dry: | ||
help: Run semantic-release on CI | ||
run: | | ||
${{ vars.app }} --dry-run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
.makim.yaml | ||
docs/changelog.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.