Added upgrade step to added approved field #177
Workflow file for this run
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 is a basic workflow to help you get started with Actions | |
| name: CI | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Setup Env | |
| run: | | |
| sudo apt-get update -qqy | |
| sudo apt-get install -y libjpeg8-dev libbz2-dev | |
| pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Set up pyenvi and Python | |
| uses: "gabrielfalcao/pyenv-action@v14" | |
| with: | |
| default: 2.7.18 | |
| versions: 3.8.16 | |
| command: pyenv -v | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '2.6' | |
| - name: Set up Env | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -qqy graphicsmagick poppler-utils libreoffice | |
| sudo gem install docsplit | |
| pip install -r requirements.txt coverage==5.3.1 | |
| - name: Cache eggs | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: cache-eggs | |
| with: | |
| path: ~/buildout-cache/eggs | |
| key: ${{ runner.os }}-test-${{ env.cache-name }} | |
| restore-keys: ${{ runner.os }}-test-${{ env.cache-name }} | |
| - name: buildout | |
| run: | | |
| buildout -c ci.cfg annotate | |
| buildout -c ci.cfg | |
| - name: test | |
| run: | | |
| bin/test -t !robot | |
| coverage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Setup Env | |
| run: | | |
| sudo apt-get update -qqy | |
| sudo apt-get install -y libjpeg8-dev libbz2-dev | |
| pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Set up pyenv and Python | |
| uses: "gabrielfalcao/pyenv-action@v14" | |
| with: | |
| default: 2.7.18 | |
| versions: 3.8.16 | |
| command: pyenv -v | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '2.6' | |
| - name: Setup Env | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -qqy graphicsmagick poppler-utils libreoffice | |
| gem install docsplit | |
| pip install -r requirements.txt coverage==5.3.1 | |
| - name: Cache eggs | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: cache-eggs | |
| with: | |
| path: ~/buildout-cache/eggs | |
| key: ${{ runner.os }}-coverage-${{ env.cache-name }} | |
| restore-keys: ${{ runner.os }}-coverage-${{ env.cache-name }} | |
| - name: buildout | |
| run: | | |
| buildout -c ci.cfg | |
| - name: code-analysis | |
| run: | | |
| bin/code-analysis | |
| - name: test coverage | |
| run: | | |
| bin/coverage run bin/test -t !robot | |
| - name: Set up Python 3.6 | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: 3.6 | |
| - 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 |