Added mTLS support for endpoints (#48) #187
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Pylint and Pytest | |
| on: | |
| push: | |
| branches: [ "main", "mtls-staging" ] | |
| pull_request: | |
| branches: [ "main", "mtls-staging" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python 3.10 | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: "3.10" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pylint pytest-cov requests_mock pytest | |
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
| - name: Test renaming script | |
| uses: ./.github/actions/renaming-script-composite-action | |
| - name: Pylint | |
| run: | | |
| pylint $(git ls-files '*.py') | |
| - name: Pytest | |
| run: | | |
| python3 -m pytest --cov=eric-oss-hello-world-python-app --cov-fail-under=90 | |
| - name: markdownlint-cli | |
| uses: nosborn/github-action-markdown-cli@v3.3.0 | |
| with: | |
| files: . | |
| config_file: .markdownlint.yaml | |
| - name: Reset app name | |
| run: export TARGET_DIR="../python-sample-app" && export APP_NAME="eric-oss-hello-world-python-app" && ./set_app_name.sh | |