https://github.com/ranjithdb/gh-actions-python-02
https://github.com/ranjithdb/gh-actions-python-02
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/ranjithdb/gh-actions-python-02
- Owner: ranjithdb
- Created: 2025-02-28T11:44:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-28T12:27:22.000Z (over 1 year ago)
- Last Synced: 2025-02-28T18:17:23.228Z (over 1 year ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gh-actions-python-02
## Python Joke App with GitHub Actions
This project is a simple Python app that fetches random jokes using an API. It demonstrates GitHub Actions for automating dependency installation, linting, and testing.
## Features
- **Dependency Management**: Installs required packages via `pip` from `requirements.txt`.
- **Linting with Flake8**: Ensures code quality by detecting syntax errors and style violations.
- **Testing with Pytest**: Verifies the app’s functionality.
## Run Locally
```bash
pip3 install -r requirements.txt
flake8 app.py
pytest app.py
```
## Auto-formatting (Optional): Use `autopep8` to automatically fix linting issues
```bash
pip3 install autopep8
autopep8 --in-place --aggressive app.py
```