Skip to content

Check datetime_format before it is cast #108

Check datetime_format before it is cast

Check datetime_format before it is cast #108

Workflow file for this run

name: Lint PlaidCloud Utilities
on:
pull_request:
branches:
- master
jobs:
reviewdog:
name: Lint PlaidCloud Utilities w ReviewDog
runs-on: ubuntu-latest
steps:
- name: Ensure python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: pip install -e .[test]; pip install -q pylint==${{ secrets.PYLINT_VERSION }}; pip install -q liccheck;
- name: License Checker
uses: andersy005/gh-action-py-liccheck@main
with:
strategy-ini-file: ./liccheck.ini
level: cautious
requirements-txt-file: ./requirements.txt
- name: Install ReviewDog
uses: reviewdog/action-setup@v1
- name: Perform Lint
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pylint -s n -f text plaidcloud 2>&1 | reviewdog -efm="%f:%l:%c: %m" -name="PyLint" -reporter=github-check -level=warning
- name: Perform Tests
run: |
pytest
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure() # run this step even if previous step failed
with:
name: Tests # Name of the check run which will be created
path: pytestresult.xml # Path to test results
reporter: java-junit # Format of test results
token: ${{ secrets.GITHUB_TOKEN }}
- name: Prepare Coverage Report
uses: 5monkeys/cobertura-action@master
if: success() || failure() # run this step even if previous step failed
with:
path: coverage.xml
repo_token: ${{ secrets.GITHUB_TOKEN }}
minimum_coverage: 75