Support odoo>=18.0 #41
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: ["master"] | |
pull_request: | |
jobs: | |
# TODO | |
# pre-commit: | |
# runs-on: ubuntu-22.04 | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - uses: actions/setup-python@v2 | |
# with: | |
# python-version: "3.11" | |
# - uses: pre-commit/action@v2.0.0 | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- PYTHON_VERSION: "3.8" | |
os: ubuntu-latest | |
- PYTHON_VERSION: "3.9" | |
os: ubuntu-latest | |
- PYTHON_VERSION: "3.10" | |
os: ubuntu-latest | |
- PYTHON_VERSION: "3.11" | |
os: ubuntu-latest | |
- PYTHON_VERSION: "3.12" | |
os: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{matrix.PYTHON_VERSION}} | |
- name: Configure TOX | |
run: | | |
pip install pip --upgrade | |
pip install tox codecov tox-gh-actions wheel | |
- name: Generate Report | |
run: | | |
tox run | |
- name: Upload Coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} # required |