Skip to content

Commit 5ebd7f5

Browse files
authored
Merge pull request #69 from acsone/modernize-ci-202508
ci: modernize
2 parents f9d56ba + 8ab9393 commit 5ebd7f5

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ jobs:
1717
include:
1818
- python-version: "3.6"
1919
toxenv: "py36-11.0"
20-
machine: ubuntu-20.04
20+
machine: ubuntu-22.04
2121
- python-version: "3.6"
2222
toxenv: "py36-12.0"
23-
machine: ubuntu-20.04
23+
machine: ubuntu-22.04
2424
- python-version: "3.6"
2525
toxenv: "py36-13.0"
26-
machine: ubuntu-20.04
26+
machine: ubuntu-22.04
2727
- python-version: "3.6"
2828
toxenv: "py36-14.0"
29-
machine: ubuntu-20.04
29+
machine: ubuntu-22.04
3030
- python-version: "3.8"
3131
toxenv: "py38-15.0"
3232
machine: ubuntu-22.04
@@ -41,7 +41,7 @@ jobs:
4141
machine: ubuntu-24.04
4242
- python-version: "3.12"
4343
toxenv: "twine_check"
44-
machine: ubuntu-24.04
44+
machine: ubuntu-latest
4545
services:
4646
postgres:
4747
image: postgres:12
@@ -61,9 +61,11 @@ jobs:
6161
PGPASSWORD: odoo
6262
steps:
6363
- uses: actions/checkout@v4
64-
- uses: actions/setup-python@v5
64+
- uses: jdx/mise-action@v2
6565
with:
66-
python-version: "${{ matrix.python-version }}"
66+
mise_toml: |
67+
[tools]
68+
python = "${{ matrix.python-version }}"
6769
- uses: actions/cache@v4
6870
with:
6971
path: ~/.cache/pip
@@ -75,7 +77,7 @@ jobs:
7577
libxml2-dev libxslt1-dev \
7678
libldap2-dev libsasl2-dev \
7779
gettext
78-
pip install tox virtualenv
80+
python${{ matrix.python-version}} -m pip install tox virtualenv
7981
- name: Run tox
80-
run: tox -e ${{ matrix.toxenv }}
81-
- uses: codecov/codecov-action@v1
82+
run: python${{ matrix.python-version}} -m tox -e ${{ matrix.toxenv }}
83+
- uses: codecov/codecov-action@v3

0 commit comments

Comments
 (0)