From b34d8f7324d260d9cb836fbb39168610b494fc5c Mon Sep 17 00:00:00 2001 From: Benoit Aimont Date: Tue, 10 Oct 2023 10:07:59 +0200 Subject: [PATCH] [IMP] checklog-odoo - add a github workflow for tests refs #1 --- .github/workflows/ci.yml | 49 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..01bb37b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,49 @@ +--- +name: CI + +on: + push: + branches: ["main"] + tags: ["*"] + pull_request: + +jobs: + tests: + name: "Python ${{ matrix.python-version }}" + runs-on: ${{ matrix.machine }} + strategy: + fail-fast: false + matrix: + include: + - python-version: "3.6" + machine: ubuntu-20.04 + - python-version: "3.7" + machine: ubuntu-22.04 + - python-version: "3.8" + machine: ubuntu-22.04 + - python-version: "3.9" + machine: ubuntu-22.04 + - python-version: "3.10" + machine: ubuntu-22.04 + - python-version: "3.11" + machine: ubuntu-22.04 + - python-version: "3.12" + machine: ubuntu-22.04 + steps: + - uses: "actions/checkout@v3" + - uses: "actions/setup-python@v4" + with: + python-version: "${{ matrix.python-version }}" + allow-prereleases: true + - name: "Install dependencies" + run: | + set -xe + python -VV + python -m site + python -m pip install --upgrade pip wheel + python -m pip install --upgrade tox tox-gh-actions + - name: "Run tox targets for ${{ matrix.python-version }}" + run: | + python -m tox + - uses: codecov/codecov-action@v3 +