From 11c0a091bbea16c23353074e62b3c2dbe47d0049 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miquel=20Ra=C3=AFch?= Date: Fri, 28 Feb 2025 16:14:40 +0100 Subject: [PATCH] [FIX] github actions --- .github/workflows/pre-commit.yml | 4 ++-- .github/workflows/test.yml | 8 ++++---- requirements.txt | 1 + test-requirements.txt | 1 + 4 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 test-requirements.txt diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 75e59b34fc2e..e960c3a011b0 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -8,8 +8,8 @@ jobs: pre-commit: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: # The pylint-odoo version we use here does not support python 3.10 # https://github.com/OCA/oca-addons-repo-template/issues/80 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d977b993fb64..2086069f0063 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,9 +27,9 @@ jobs: OPENUPGRADE_USE_DEMO: "yes" steps: - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: - python-version: 3.7 + python-version: 3.8 - name: Configure Postgres uses: harmon758/postgresql-action@v1 with: @@ -59,14 +59,14 @@ jobs: # - git reset -q --hard $TRAVIS_COMMIT # Install Python requirements of target release - name: Check out Odoo - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: repository: odoo/odoo ref: "15.0" fetch-depth: 1 path: odoo - name: Check out OpenUpgrade - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: path: openupgrade - name: Configuration diff --git a/requirements.txt b/requirements.txt index 11c9dc204295..180fc49789ba 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ +# generated from manifests external_dependencies openupgradelib diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 000000000000..abafd66f5328 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1 @@ +openupgradelib @ git+https://github.com/OCA/openupgradelib.git@master