Skip to content

fix(client): Improve error handling and cleanup #157

fix(client): Improve error handling and cleanup

fix(client): Improve error handling and cleanup #157

Workflow file for this run

name: ci-cd
on: [push, pull_request]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Install dependencies
run: |
python --version
python -m pip install --upgrade pip
pip install -r requirements.txt
# - name: Commit Lint
# run: |
# pip install gitlint==0.18.0
# gitlint --contrib CT1 --ignore B6 -c ignore-by-author-name.regex=github-actions -c general.ignore-merge-commits=true
- name: Lint with pylint
run: |
pip install pylint
pylint --rcfile=.pylintrc decide/*.py
- name: Test with pytest
run: |
pytest -vv decide/test --disable-pytest-warnings
cd:
needs: ci
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.FEB_2024_SECRET }}
- name: Use Python Semantic Release to prepare Release
uses: relekang/python-semantic-release@master
with:
github_token: ${{ secrets.FEB_2024_SECRET }}
repository_username: __token__
repository_password: ${{ secrets.PYPI_API_TOKEN }}