Skip to content

Merge pull request #44 from NFDI4Chem/development #20

Merge pull request #44 from NFDI4Chem/development

Merge pull request #44 from NFDI4Chem/development #20

# 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
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