-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update requirements management (#82)
- Loading branch information
Showing
10 changed files
with
246 additions
and
180 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
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 |
---|---|---|
|
@@ -4,13 +4,11 @@ on: | |
push: | ||
branches: | ||
- main | ||
- maintenance/* | ||
tags: | ||
- "v*.*.*" | ||
pull_request: | ||
branches: | ||
- main | ||
- maintenance/* | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
paths-ignore: | ||
- "**.png" | ||
|
@@ -42,10 +40,14 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Install Tools with asdf | ||
uses: asdf-vm/actions/install@v1.1.0 | ||
uses: asdf-vm/actions/install@v2.2.0 | ||
|
||
- name: Run pre-commit checks | ||
uses: pre-commit/[email protected] | ||
run: | | ||
poetry install --only=dev | ||
source .venv/bin/activate | ||
pre-commit run -a | ||
# We only check docs for now | ||
- uses: dorny/paths-filter@v2 | ||
|
@@ -57,28 +59,31 @@ jobs: | |
- name: Lint Docs | ||
if: steps.filter.outputs.can_apply == 'true' | ||
uses: github/super-linter@v4 | ||
env: | ||
VALIDATE_ALL_CODEBASE: true | ||
VALIDATE_MARKDOWN: true | ||
DEFAULT_BRANCH: main | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
MARKDOWN_CONFIG_FILE: .markdownlint.yaml | ||
LINTER_RULES_PATH: "." | ||
uses: DavidAnson/markdownlint-cli2-action@v9 | ||
with: | ||
globs: | | ||
**/*.md | ||
- name: Check requirements.txt is up to date with poetry.lock | ||
- name: Check if requirements*.txt are up to date with poetry.lock | ||
run: | | ||
make generate-requirements-file | ||
changes_count=$(git status --porcelain --untracked-files requirements.txt | wc -l) | ||
if ! test -f "requirements.txt" || ! test -f "requirements_dev.txt"; then | ||
echo "[ERROR] Either requirements.txt or requirements_dev.txt (or both) does not exist" | ||
echo "[ERROR] Make sure to run 'make generate-requirements-files' with remote make targets >= mk-0.7.0" | ||
exit 1 | ||
fi | ||
make generate-requirements-files | ||
changes_count=$(git status --porcelain --untracked-files requirements.txt requirements_dev.txt | wc -l) | ||
if [[ "$changes_count" -ne 0 ]] ; then | ||
echo "You failed to keep requirements.txt synchronized with poetry.lock" | ||
echo "You failed to keep requirements files synchronized with poetry.lock" | ||
git status --porcelain --untracked-files requirements.txt | ||
git diff requirements.txt | ||
git diff requirements.txt requirements_dev.txt | ||
echo | ||
exit 1 | ||
else | ||
echo "Nothing to say, requirements.txt seems OK" | ||
echo "Nothing to say, requirements*.txt files seem OK" | ||
fi | ||
build-python: | ||
name: Build python artifacts | ||
runs-on: ubuntu-latest | ||
|
@@ -223,7 +228,7 @@ jobs: | |
- name: Docker build | ||
if: "${{ env.NEED_RELEASE == 'yes' }}" | ||
run: | | ||
make docker-build "APP_VERSION=${GITHUB_REF_SLUG:1}" | ||
make docker-build APP_VERSION="${GITHUB_REF_SLUG:1}" | ||
echo "Checking built image" | ||
docker image ls | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
poetry 1.3.1 | ||
poetry 1.5.1 | ||
editorconfig-checker 2.6.0 | ||
actionlint 1.6.22 | ||
shfmt 3.6.0 |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.