Reading text file content and display word count on HTML using Python script running on a Docker image. Run pytest script on Docker to test the Python file reader script. The project is a GitHub workflow pipeline, where each step triggers the next. Clone the repository to start initialization phase.
Great! You cloned the repository file-reader
- Update the workflow step 01
01_upload_index.yml
- Add trigger on-push
index.html
- Add new command to update README using
.github/workflows/actions/update_readme.sh
with.github/workflows/steps/01_step.txt
- Upload
index.html
Great! You uploaded index.html
- Update the workflow step 02
02_upload_word_count_script.yml
- Add trigger on-push
reader.py
- Add new command to update README using
.github/workflows/actions/update_readme.sh
with.github/workflows/steps/02_step.txt
- Develop and add the Python script
reader.py
Well done! You added reader.py.
Create a Dockerfile that installs Python, reads file.txt, and updates index.html with the word count.
- Update the workflow step 03
03_upload_dockerfile.yml
- Add trigger on-push
Dockerfile
- Add new command to update README using
.github/workflows/actions/update_readme.sh
with.github/workflows/steps/03_step.txt
- Develop and add
Dockerfile
Nice work! You uploaded Dockerfile.
- Update the workflow step 04
04_detect_file.yml
- Add trigger on-push
file.txt
- Add new command to update README using
.github/workflows/actions/update_readme.sh
with.github/workflows/steps/04_step.txt
- Add new command to update index.html using
.github/workflows/actions/update_count.sh
Nice work! You updated the word count in index.html
- Update the workflow step 05
05_upload_pytest.yml
- Add trigger on-push
readertest.py
- Add new command to update README using
.github/workflows/actions/update_readme.sh
with.github/workflows/steps/05_step.txt
- Develop and add
readertest.py
Nice work! You uploaded Python unit test
- GitHub Actions pipeline detects
readertest.py
- GitHub Actions runs
readertest.py
when Docker container runs