Skip to content

During tests, Keep wizards on memory and avoid autosync #32

During tests, Keep wizards on memory and avoid autosync

During tests, Keep wizards on memory and avoid autosync #32

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches:
- main
- master
jobs:
tests-py311:
runs-on: ubuntu-latest
steps:
- name: Checkout destral
uses: actions/checkout@v4
- name: Checkout ERP repository
uses: actions/checkout@v4
with:
repository: gisce/erp
token: ${{ secrets.RO_GITHUB_ACTIONS_REPOS }}
path: erp
- name: Checkout oorq repository
uses: actions/checkout@v4
with:
repository: gisce/oorq
token: ${{ secrets.RO_GITHUB_ACTIONS_REPOS }}
path: oorq
- name: Configure PYTHONPATH
run: echo "PYTHONPATH=$(pwd):$(pwd)/erp/server/bin" >> $GITHUB_ENV
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Upgrade packaging tooling
run: |
python -m pip install -U pip wheel
python -m pip install -U "setuptools<81.0.0"
python -m pip install -v "lazy-object-proxy==1.6.0"
- name: Install project dependencies
run: |
python -m pip install -r requirements-dev.txt
python -m pip install -r erp/requirements.txt
python -m pip install -e .
python -m pip install -r erp/server/bin/msgpackapi/requirements.txt
python -m pip install -r erp/server/bin/restapi/requirements.txt
python -m pip install -r erp/server/bin/addons/base/requirements.txt
python -m pip install -r oorq/requirements.txt
- name: Add user base scripts to PATH
run: echo "${HOME}/.local/bin" >> "${GITHUB_PATH}"
- name: Run unit tests
run: python -m unittest discover tests
- name: Run specs
run: mamba spec
tests-py27:
runs-on: ubuntu-latest
container: python:2.7-slim
steps:
- name: Install system dependencies
run: |
set -eux
sed -i 's|deb.debian.org|archive.debian.org|g; s|security.debian.org|archive.debian.org|g' /etc/apt/sources.list
sed -i '/buster-updates/d' /etc/apt/sources.list
apt-get -o Acquire::Check-Valid-Until=false update
apt-get install -y --no-install-recommends git ca-certificates build-essential python-dev libpq-dev
rm -rf /var/lib/apt/lists/*
- name: Checkout destral
uses: actions/checkout@v4
- name: Checkout ERP repository
uses: actions/checkout@v4
with:
repository: gisce/erp
token: ${{ secrets.RO_GITHUB_ACTIONS_REPOS }}
path: erp
- name: Checkout oorq repository
uses: actions/checkout@v4
with:
repository: gisce/oorq
token: ${{ secrets.RO_GITHUB_ACTIONS_REPOS }}
path: oorq
- name: Configure PYTHONPATH
run: echo "PYTHONPATH=$(pwd):$(pwd)/erp/server/bin" >> $GITHUB_ENV
- name: Prepare pip tooling
run: python -m pip install --upgrade "pip<21" "setuptools<45" wheel
- name: Install project dependencies
run: |
python -m pip install -r requirements-dev.txt
python -m pip install -r erp/requirements.txt
python -m pip install -e .
python -m pip install -r erp/server/bin/msgpackapi/requirements.txt
python -m pip install -r erp/server/bin/restapi/requirements.txt
python -m pip install -r erp/server/bin/addons/base/requirements.txt
python -m pip install -r oorq/requirements.txt
- name: Run unit tests
run: python -m unittest discover tests
- name: Run specs
run: mamba spec