Improved conversion error handling #835
This file contains hidden or 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
| # This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
| # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
| name: Python package | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| PLONE_VERSION: [ 4.3, 5.1, 5.2 ] | |
| services: | |
| libreoffice: | |
| image: harbor.imio.be/library/libreoffice:24.2 | |
| ports: | |
| - 2002:2002 | |
| volumes: | |
| - /tmp:/tmp | |
| - /var/tmp:/var/tmp | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Env | |
| run: | | |
| mkdir -p -m 777 /tmp/appy/ | |
| sudo add-apt-repository ppa:libreoffice/ppa -y | |
| sudo apt update -qq -y | |
| sudo apt-get install -qq -y libreoffice libreoffice-script-provider-python libjpeg62 libjpeg62-dev libbz2-dev | |
| mkdir -p buildout-cache/{eggs,downloads} | |
| pip install -r requirements.txt | |
| - name: Set up pyenv and Python | |
| uses: "gabrielfalcao/pyenv-action@v18" | |
| with: | |
| default: 2.7.18 | |
| versions: 3.8.16 | |
| command: pyenv -v | |
| - name: Cache eggs | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: cache-eggs | |
| with: | |
| path: ~/buildout-cache/eggs | |
| key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.PLONE_VERSION }} | |
| restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.PLONE_VERSION }} | |
| - name: buildout | |
| run: | | |
| sed -ie "s#plone-5#plone-${{matrix.PLONE_VERSION}}#" test-ci.cfg | |
| pip install -r requirements.txt coverage==5.3.1 | |
| buildout -c test-ci.cfg annotate | |
| buildout -c test-ci.cfg | |
| bin/translation-manage -c | |
| - name: code-analysis | |
| run: | | |
| bin/code-analysis | |
| - name: test | |
| run: | | |
| docker ps -a | |
| bin/test --test=\!"robot" | |
| coverage: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| PLONE_VERSION: [5.2] | |
| services: | |
| libreoffice: | |
| image: harbor.imio.be/library/libreoffice:24.2 | |
| ports: | |
| - 2002:2002 | |
| volumes: | |
| - /tmp:/tmp | |
| - /var/tmp:/var/tmp | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Env | |
| run: | | |
| mkdir -p -m 777 /tmp/appy/ | |
| sudo add-apt-repository ppa:libreoffice/ppa -y | |
| sudo apt update -qq -y | |
| sudo apt-get install -qq -y libreoffice libreoffice-script-provider-python libjpeg62 libjpeg62-dev libbz2-dev | |
| mkdir -p buildout-cache/{eggs,downloads} | |
| pip install -r requirements.txt | |
| - name: Set up pyenv and Python | |
| uses: "gabrielfalcao/pyenv-action@v18" | |
| with: | |
| default: 2.7.18 | |
| versions: 3.8.16 | |
| command: pyenv -v | |
| - name: Cache eggs | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: cache-eggs | |
| with: | |
| path: ~/buildout-cache/eggs | |
| key: ${{ runner.os }}-coverage-${{ env.cache-name }}-${{ matrix.PLONE_VERSION }} | |
| restore-keys: ${{ runner.os }}-coverage-${{ env.cache-name }}-${{ matrix.PLONE_VERSION }} | |
| - name: buildout | |
| run: | | |
| sed -ie "s#plone-5#plone-${{matrix.PLONE_VERSION}}#" test-ci.cfg | |
| pip install -r requirements.txt coverage==5.3.1 | |
| buildout -c test-ci.cfg annotate | |
| buildout -c test-ci.cfg | |
| bin/translation-manage -c | |
| - name: test coverage | |
| run: | | |
| bin/coverage run bin/test --test=\!"robot" | |
| - name: Set up Python 3.8 | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: 3.8 | |
| - name: Install Coveralls | |
| run: | | |
| pip3 install -U pip setuptools --no-cache-dir | |
| pip3 install -U "coveralls>=3.0.0" coverage==5.3.1 --no-cache-dir | |
| - name: Publish to Coveralls | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| coveralls --service=github |