Skip to content

Topic/fix selects2

Topic/fix selects2 #55

Workflow file for this run

name: Test Pull Request
on: [pull_request]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8']
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache .cache/pip
uses: actions/cache@v3
id: cache-pip
with:
path: ~/.cache/pip
key: pip_cache_py_${{ matrix.python-version }}
- name: Install package
run: |
touch requirements.txt
pip install -r requirements.txt black==23.3 flake8==6.0
- name: Flake8
run: flake8 --ignore=C901,W503,E501
# at the moment I would prefer not to enable this
# - name: Black
# uses: psf/black@23.3.0
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8']
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache .cache/pip
uses: actions/cache@v3
id: cache-pip
with:
path: ~/.cache/pip
key: pip_cache_py_${{ matrix.python-version }}
- name: setup
run: |
pip install -r requirements.txt .
pip install -r requirements-dev.txt
#TODO reenable: works only on branch?
# - name: diff_pydocstyle_report
# run: make diff_pydocstyle_report
- name: Test
run: make test
- name: Planemo lint tools
run: planemo l tests/test-data/
# planemo test content of tests/test-data (this is OK, because the previous
# tests ensure equality of the xmls that are generated and those in the package)
- name: planemo test tools
run: export PATH=$(pwd)/tests/test-data:$PATH && planemo t tests/test-data/