Skip to content

Commit bec0ef3

Browse files
[UPD] Update workflows
1 parent 62c67f8 commit bec0ef3

7 files changed

Lines changed: 15 additions & 7 deletions

File tree

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Do NOT update manually; changes here will be overwritten by Copier
2-
_commit: v1.27
2+
_commit: v1.33
33
_src_path: https://github.com/OCA/oca-addons-repo-template.git
44
additional_ruff_rules: []
55
ci: GitHub

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ jobs:
1313
pre-commit:
1414
runs-on: ubuntu-22.04
1515
steps:
16-
- uses: actions/checkout@v3
17-
- uses: actions/setup-python@v2
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-python@v5
1818
with:
1919
python-version: "3.11"
2020
- name: Get python version
2121
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
22-
- uses: actions/cache@v1
22+
- uses: actions/cache@v4
2323
with:
2424
path: ~/.cache/pre-commit
2525
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
name: Detect unreleased dependencies
1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818
- run: |
1919
for reqfile in requirements.txt test-requirements.txt ; do
2020
if [ -f ${reqfile} ] ; then
@@ -53,7 +53,7 @@ jobs:
5353
OCA_ENABLE_CHECKLOG_ODOO: "1"
5454
PIP_INDEX_URL: "https://pypi.org/simple/"
5555
steps:
56-
- uses: actions/checkout@v3
56+
- uses: actions/checkout@v4
5757
with:
5858
persist-credentials: false
5959
- name: Install addons and dependencies

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ repos:
9595
additional_dependencies:
9696
- "eslint@9.12.0"
9797
- "eslint-plugin-jsdoc@50.3.1"
98+
- "globals@16.0.0"
9899
- repo: https://github.com/pre-commit/pre-commit-hooks
99100
rev: v4.6.0
100101
hooks:

.ruff.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ extend-select = [
1010
"I", # isort
1111
"UP", # pyupgrade
1212
]
13+
extend-safe-fixes = ["UP008"]
1314
exclude = ["setup/*"]
1415

1516
[format]

checklog-odoo.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[checklog-odoo]
2+
ignore=
3+
WARNING.* 0 failed, 0 error\(s\).*

eslint.config.cjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
var globals = require('globals');
12
jsdoc = require("eslint-plugin-jsdoc");
23

34
const config = [{
@@ -16,6 +17,8 @@ const config = [{
1617
openerp: "readonly",
1718
owl: "readonly",
1819
luxon: "readonly",
20+
QUnit: "readonly",
21+
...globals.browser,
1922
},
2023

2124
ecmaVersion: 2024,
@@ -191,7 +194,7 @@ const config = [{
191194
},
192195

193196
}, {
194-
files: ["**/*.esm.js"],
197+
files: ["**/*.esm.js", "**/*test.js"],
195198

196199
languageOptions: {
197200
ecmaVersion: 2024,

0 commit comments

Comments
 (0)