Merge pull request #71 from akretion/add-odoo-extra #2
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.9" | |
os: ubuntu-latest | |
- PYTHON_VERSION: "3.10" | |
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: | | |
pip install coverage | |
pip install .[test] | |
coverage run -m unittest | |
- name: Upload Coverage to Codecov | |
uses: codecov/codecov-action@v3 |