Merge pull request #53 from trisdoan/leverage-odoo-module-migrator #156
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: tests | |
on: [pull_request, push] | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
pip install .[test] | |
sudo apt install -y git | |
git config --global user.email "[email protected]" | |
git config --global user.name "oca-port-test" | |
- name: Run tests | |
run: coverage run -m pytest -v oca_port/tests && coverage report -m |