Skip to content

Merge pull request #299 from Steinbeck-Lab/development #97

Merge pull request #299 from Steinbeck-Lab/development

Merge pull request #299 from Steinbeck-Lab/development #97

# This worklflow will perform following actions when the code is pushed to main branch.
# - Test linting with pylint.
# - Test the code with pytest.
# - Trigger release-please action to create release which needs test to pass first.
#
# Maintainers:
# - name: Nisha Sharma
# - email: [email protected]
name: release-please-action
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip3 install --upgrade setuptools pip
pip3 install --no-cache-dir -r requirements.txt
pip3 install rdkit
python3 -m pip uninstall -y imantics
pip3 install imantics==0.1.12
pip3 install openbabel-wheel
pip3 install --no-deps decimer-segmentation
pip3 install --no-deps decimer>=2.2.0
pip3 install --no-deps STOUT-pypi>=2.0.5
pip install flake8 pytest
- name: Analysing the code with pylint
run: |
flake8 --per-file-ignores="__init__.py:F401" --ignore E402,E501,W503 $(git ls-files '*.py') .
- name: Run test
run: |
python3 -m pytest -p no:warnings
release-please:
runs-on: ubuntu-latest
needs: test
steps:
- uses: google-github-actions/release-please-action@v3
with:
release-type: python
package-name: release-please-action
token: ${{ secrets.PAT }}
prerelease: true