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

Check recent update issue #24

Closed
wants to merge 12 commits into from
22 changes: 0 additions & 22 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,30 +46,8 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
<<<<<<< HEAD
cache: poetry

=======
- name: Python Poetry Action
uses: abatilo/[email protected]
- name: generate cache key PY
run:
echo "PY=$((python -VV; pip freeze; poetry --version) | sha256sum | cut -d' '
-f1)" >> $GITHUB_ENV
- uses: actions/[email protected]
with:
path: .venv
# HACK https://github.com/actions/cache/issues/2#issuecomment-673493515
# If you need to "clear" cache, just update the `CACHE_DATE` secret,
# putting current date (and time, if needed)
key: >-
cache ${{ secrets.CACHE_DATE }} ${{ env.PY }} ${{ runner.os }} ${{
hashFiles('pyproject.toml') }} ${{ hashFiles('poetry.lock') }}
# HACK python-poetry/poetry#3010 and 3336 workaround for GitHub actions
# and poetry 1.1.2 throwing 'Incorrectly nested style tag found.'
- run: poetry config experimental.new-installer false
- run: poetry install
>>>>>>> bc5ada9 (Dev cetmix (#8))
# Let tests issue git commits
- run: git config --global user.name CI
- run: git config --global user.email CI@GITHUB
Expand Down
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ var/
*.egg
*.eggs

# Debian packages
*.deb

# Redhat packages
*.rpm

# MacOS packages
*.dmg

# Installer logs
pip-log.txt
pip-delete-this-directory.txt
Expand Down
15 changes: 7 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/.pre-commit-config.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{%- set repo_rev.flake8 = "3.8.3" %}
{%- set repo_rev.flake8_bugbear = "20.1.4" %}
{%- set repo_rev.isort = "5.12.0" %}
{%- set repo_rev.maintainer_tools = "9a170331575a265c092ee6b24b845ec508e8ef75" %}
{%- set repo_rev.maintainer_tools = "d5fab7ee87fceee858a3d01048c78a548974d935" %}
{%- set repo_rev.nodejs = "14.13.0" %}
{%- set repo_rev.odoo_pre_commit_hooks = "v0.0.25" %}
{%- set repo_rev.pre_commit_hooks = "v3.2.0" %}
Expand All @@ -26,7 +26,7 @@
{%- set repo_rev.flake8 = "3.9.2" %}
{%- set repo_rev.flake8_bugbear = "21.9.2" %}
{%- set repo_rev.isort = "5.12.0" %}
{%- set repo_rev.maintainer_tools = "9a170331575a265c092ee6b24b845ec508e8ef75" %}
{%- set repo_rev.maintainer_tools = "d5fab7ee87fceee858a3d01048c78a548974d935" %}
{%- set repo_rev.nodejs = "14.18.0" %}
{%- set repo_rev.odoo_pre_commit_hooks = "v0.0.25" %}
{%- set repo_rev.pre_commit_hooks = "v4.0.1" %}
Expand All @@ -43,7 +43,7 @@
{%- set repo_rev.flake8 = "3.9.2" %}
{%- set repo_rev.flake8_bugbear = "21.9.2" %}
{%- set repo_rev.isort = "5.12.0" %}
{%- set repo_rev.maintainer_tools = "9a170331575a265c092ee6b24b845ec508e8ef75" %}
{%- set repo_rev.maintainer_tools = "d5fab7ee87fceee858a3d01048c78a548974d935" %}
{%- set repo_rev.nodejs = "16.17.0" %}
{%- set repo_rev.odoo_pre_commit_hooks = "v0.0.25" %}
{%- set repo_rev.pre_commit_hooks = "v4.3.0" %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ env:

# See https://github.com/OCA/odoo-community.org/issues/37#issuecomment-470686449
parserOptions:
ecmaVersion: 2019
ecmaVersion: {% if odoo_version < 17 %}2019{% else %}2022{% endif %}

overrides:
- files:
Expand Down
Loading