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

[13.0][FIX] github workflows actions #4789

Merged
merged 2 commits into from
Feb 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
PGUSER: "odoo"
steps:
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.7
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Configuration
run: |
sudo apt update
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/flake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.7
- uses: actions/checkout@v2
python-version: 3.8
- uses: actions/checkout@v4
- name: Configuration
run: pip install flake8==3.4.1
run: pip install flake8==4.0.1
- name: Flake8 Script
run: |
flake8 odoo/openupgrade --max-line-length=120
Expand All @@ -27,4 +27,7 @@ jobs:
# only flake8 migration scripts from the openupgrade project, presumably
# identifiable by using the openupgrade helpers
flake8 --max-line-length=120 scripts $(find . \( -name 'pre-*.py' -or -name 'post-*.py' -or -name 'end-*.py' \) -exec grep -q openupgrade {} \; -print)
flake8 addons/*/migrations/*/tests/ --max-line-length=120
if ls addons/*/migrations/*/tests/ > /dev/null 2>&1; then
flake8 addons/*/migrations/*/tests/ --max-line-length=120 --filename=__init__.py --ignore=F401
flake8 addons/*/migrations/*/tests/ --max-line-length=120 --exclude=__init__.py
fi
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
PGUSER: "odoo"
steps:
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.7
- name: Configure Postgres
Expand All @@ -50,7 +50,7 @@ jobs:
# Line below may fail quite often due to Travis bug:
# - git reset -q --hard $TRAVIS_COMMIT
# Install Python requirements of target release
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Configuration
run: |
sudo apt update
Expand Down
4 changes: 2 additions & 2 deletions addons/stock/migrations/13.0.1.1/post-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def map_stock_picking_responsible_responsible_id_to_user_id(env):
return

env.cr.execute(
f"""
"""
SELECT distinct rp.id,
rp.name,
rp.company_id,
Expand Down Expand Up @@ -225,7 +225,7 @@ def map_stock_picking_responsible_responsible_id_to_user_id(env):
# map responsible_id to user_id
openupgrade.logged_query(
env.cr,
f"""
"""
WITH partner_user AS (
SELECT sp.id AS picking_id,
rp.id AS partner_id,
Expand Down
2 changes: 1 addition & 1 deletion addons/website/migrations/13.0.1.0/post-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def _set_data_anchor_xml_attribute(env):
)
for view in website_views:
doc = fromstring(view.arch_db)
links = doc.cssselect("a[href^=\#]:not([href=\#])")
links = doc.cssselect(r"a[href^=\#]:not([href=\#])")
if links:
replacement = {
"selector": ", ".join([link.attrib["href"] for link in links]),
Expand Down
Loading