[FIX] Peso al generar pdf #92
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
| name: Tests | |
| on: | |
| push: | |
| branches: [develop, master] | |
| pull_request: | |
| branches: [develop, master] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Cache buildout | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| eggs | |
| parts | |
| src | |
| .installed.cfg | |
| .mr.developer.cfg | |
| key: ${{ runner.os }}-buildout-ci-v2-${{ hashFiles('buildout-ci.cfg', 'requirements.txt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-buildout-ci-v2- | |
| ${{ runner.os }}-buildout-ci- | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| git \ | |
| libsasl2-dev \ | |
| python3-dev \ | |
| libldap2-dev \ | |
| libssl-dev \ | |
| libxml2-dev \ | |
| libxslt1-dev \ | |
| libjpeg-dev \ | |
| libfreetype6-dev \ | |
| liblcms2-dev \ | |
| libwebp-dev \ | |
| libharfbuzz-dev \ | |
| libfribidi-dev \ | |
| libxcb1-dev | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Run buildout | |
| run: | | |
| buildout -c buildout-ci.cfg -N | |
| buildout -c buildout-ci.cfg -N | |
| - name: Run tests | |
| run: | | |
| bin/test | |
| # - name: Generate coverage report | |
| # run: | | |
| # bin/coverage run --source=src/genweb6/organs bin/test -s genweb6.organs | |
| # bin/coverage report | |
| # bin/coverage html -d htmlcov | |
| # - name: Upload coverage to artifacts | |
| # uses: actions/upload-artifact@v4 | |
| # if: always() | |
| # with: | |
| # name: coverage-report | |
| # path: htmlcov/ | |
| # retention-days: 30 | |
| # - name: Comment coverage on PR | |
| # if: github.event_name == 'pull_request' | |
| # run: | | |
| # COVERAGE=$(coverage report | grep TOTAL | awk '{print $4}') | |
| # echo "Coverage: $COVERAGE" |