-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #183 from Tecnativa/devel
Prepare release
- Loading branch information
Showing
17 changed files
with
876 additions
and
431 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 |
---|---|---|
|
@@ -53,9 +53,10 @@ jobs: | |
python-version: ${{ matrix.python-version }} | ||
- name: Generate cache key CACHE | ||
run: | ||
echo "::set-env name=CACHE::${{ secrets.CACHE_DATE }} ${{ runner.os }} | ||
$(python -VV | sha256sum | cut -d' ' -f1) ${{ hashFiles('pyproject.toml') }} | ||
${{ hashFiles('poetry.lock') }} ${{ hashFiles('.pre-commit-config.yaml') }}" | ||
echo "CACHE=${{ secrets.CACHE_DATE }} ${{ runner.os }} $(python -VV | | ||
sha256sum | cut -d' ' -f1) ${{ hashFiles('pyproject.toml') }} ${{ | ||
hashFiles('poetry.lock') }} ${{ hashFiles('.pre-commit-config.yaml') }}" >> | ||
$GITHUB_ENV | ||
- uses: actions/[email protected] | ||
with: | ||
path: | | ||
|
@@ -65,7 +66,7 @@ jobs: | |
key: venv ${{ env.CACHE }} | ||
- run: pip install poetry | ||
- name: Patch $PATH | ||
run: echo "::set-env name=PATH::$HOME/.local/bin:$PATH" | ||
run: echo "$HOME/.local/bin" >> $GITHUB_PATH | ||
- run: poetry install | ||
# Precreate shared networks to avoid race conditions | ||
- run: docker network create inverseproxy_shared | ||
|
@@ -74,7 +75,13 @@ jobs: | |
- run: git config --global user.name CI | ||
- run: git config --global user.email CI@GITHUB | ||
# Run all tests, which includes linters | ||
# Non concurrent first (in parallel) | ||
- run: poetry run invoke test | ||
env: | ||
DOCKER_TEST: 1 | ||
SELECTED_ODOO_VERSIONS: ${{ matrix.odoo-version }} | ||
# Concurrent tests (isolated) | ||
- run: poetry run invoke test --sequential | ||
env: | ||
DOCKER_TEST: 1 | ||
SELECTED_ODOO_VERSIONS: ${{ matrix.odoo-version }} |
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 |
---|---|---|
|
@@ -28,22 +28,23 @@ repos: | |
rev: v2.7.2 | ||
hooks: | ||
- id: pyupgrade | ||
args: | ||
- --keep-percent-format | ||
- repo: https://github.com/timothycrosley/isort | ||
rev: 5.5.1 | ||
hooks: | ||
- id: isort | ||
name: isort except __init__.py | ||
args: [--settings, .] | ||
exclude: /__init__\.py$ | ||
# TODO Migrate to new prettier pre-commit repo after fixed: | ||
# HACK https://github.com/prettier/pre-commit/pull/17 | ||
# HACK https://github.com/prettier/pre-commit/pull/18 | ||
- repo: https://github.com/prettier/prettier | ||
rev: 2.1.2 | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v2.1.2 | ||
hooks: | ||
- id: prettier | ||
name: prettier + plugin-xml | ||
additional_dependencies: | ||
# HACK https://github.com/prettier/pre-commit/issues/16#issuecomment-713474520 | ||
- [email protected] | ||
- "@prettier/[email protected]" | ||
args: | ||
- --plugin=@prettier/plugin-xml | ||
|
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
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
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,2 @@ | ||
ARG ODOO_VERSION | ||
FROM tecnativa/doodba:${ODOO_VERSION}-onbuild | ||
FROM ghcr.io/tecnativa/doodba:${ODOO_VERSION}-onbuild |
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.