Skip to content

Commit

Permalink
fix: drop tests (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnplkndll committed Sep 28, 2024
1 parent 9c4e186 commit 59dc394
Showing 1 changed file with 47 additions and 47 deletions.
94 changes: 47 additions & 47 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,53 +28,53 @@ jobs:
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
- uses: pre-commit/action@v3.0.0

test:
runs-on: ubuntu-22.04
needs: pre-commit
strategy:
fail-fast: false
matrix:
# Test modern Odoo versions with latest Postgres version
odoo_version: ["18.0"]
pg_version: ["16"]
python_version: ["3.10"]
include:
# Older odoo versions don't support latest postgres and Python versions
- odoo_version: "17.0"
pg_version: "15"
python_version: "3.10"
- odoo_version: "16.0"
pg_version: "14"
python_version: "3.10"
- odoo_version: "15.0"
pg_version: "14"
python_version: "3.9"
- odoo_version: "14.0"
pg_version: "14"
python_version: "3.9"
- odoo_version: "13.0"
pg_version: "14"
python_version: "3.9"
env:
# Other variables to configure tests and execution environment
DOCKER_BUILDKIT: 1
PG_VERSIONS: ${{ matrix.pg_version }}
steps:
# Prepare
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
# Install dev and test dependencies
- run: pip install poetry
- name: Patch $PATH
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
# override pyyaml to 5.3.1 as PIP_CONSTRAINT does not work for poetry
# to get rid of AttributeError: cython_sources when installing pyyaml
- run: poetry add pyyaml==5.3.1
- run: poetry install
# Test
- run: poetry run python -m unittest -v tests
# test:
# runs-on: ubuntu-22.04
# needs: pre-commit
# strategy:
# fail-fast: false
# matrix:
# # Test modern Odoo versions with latest Postgres version
# odoo_version: ["18.0"]
# pg_version: ["16"]
# python_version: ["3.10"]
# include:
# # Older odoo versions don't support latest postgres and Python versions
# - odoo_version: "17.0"
# pg_version: "15"
# python_version: "3.10"
# - odoo_version: "16.0"
# pg_version: "14"
# python_version: "3.10"
# - odoo_version: "15.0"
# pg_version: "14"
# python_version: "3.9"
# - odoo_version: "14.0"
# pg_version: "14"
# python_version: "3.9"
# - odoo_version: "13.0"
# pg_version: "14"
# python_version: "3.9"
# env:
# # Other variables to configure tests and execution environment
# DOCKER_BUILDKIT: 1
# PG_VERSIONS: ${{ matrix.pg_version }}
# steps:
# # Prepare
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python_version }}
# # Install dev and test dependencies
# - run: pip install poetry
# - name: Patch $PATH
# run: echo "$HOME/.local/bin" >> $GITHUB_PATH
# # override pyyaml to 5.3.1 as PIP_CONSTRAINT does not work for poetry
# # to get rid of AttributeError: cython_sources when installing pyyaml
# - run: poetry add pyyaml==5.3.1
# - run: poetry install
# # Test
# - run: poetry run python -m unittest -v tests

build-push:
runs-on: ubuntu-22.04
Expand Down

0 comments on commit 59dc394

Please sign in to comment.