Skip to content

Commit

Permalink
[IMP] checklog-odoo - add a github workflow for tests refs #1
Browse files Browse the repository at this point in the history
  • Loading branch information
baimont committed Oct 10, 2023
1 parent c36188f commit b34d8f7
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b34d8f7

Please sign in to comment.