Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/actions/renaming-script-composite-action/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: "Test renaming script"
runs:
using: "composite"
steps:
- name: "Setting permissions for script"
run: chmod +x set_app_name.sh
shell: bash
- name: "Testing renaming script with missing APP_NAME"
run: "! ./set_app_name.sh"
shell: bash
- name: "Testing renaming script with invalid name (unsupported characters)"
run: export APP_NAME="#INVALID" && ! ./set_app_name.sh
shell: bash
- name: "Testing renaming script with invalid name (exceeding length)"
run: export APP_NAME="this-app-has-a-name-that-exceeds-fifty-three-characters" && ! ./set_app_name.sh
shell: bash
- name: "Testing renaming script with valid name"
run: export APP_NAME="valid-app-name" && ./set_app_name.sh
shell: bash
48 changes: 27 additions & 21 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,30 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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: 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
- 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