Fix selenium crash #81
Workflow file for this run
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: QA | |
on: | |
pull_request_target: | |
branches: | |
- "main" | |
push: | |
branches: | |
- "main" | |
tags: | |
- 'v*' | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/pre-commit | |
~/.cache/pip | |
key: ${{runner.os}}-pre-commit | |
- name: Install dependencies | |
run: pip install --progress-bar=off --upgrade tox | |
- name: Run lint | |
run: tox -e lint -v | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
odoo: [14, 15, 16] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build container | |
run: ODOO_VERSION=${{ matrix.odoo }} docker compose -f .docker/chrome-compose.yaml build | |
- name: Pull supporting containers | |
run: docker compose -f .docker/chrome-compose.yaml pull db | |
- name: Run embedded Selenium tests | |
run: ODOO_VERSION=${{ matrix.odoo }} docker compose -f .docker/chrome-compose.yaml up --abort-on-container-exit --force-recreate | |
- name: Obtain coverage | |
run: docker cp odoo-selenium-odoo-1:/home/odoo/odoo-selenium/coverage.xml ./coverage.xml | |
- uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/pip | |
key: ${{runner.os}}-pip | |
- name: Install dependencies | |
run: | | |
pip install --progress-bar=off --upgrade tox twine | |
tox -e build -v | |
- name: Publish package | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
run: | | |
ls -lah dist/* | |
python -m twine upload --verbose -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} --repository-url https://upload.pypi.org/legacy/ dist/* |