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
17 changes: 9 additions & 8 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
name: Python Auto Test

on: [push] # means: run this every time I push code to GitHub
on: [push]

jobs:
test: # name of the job
runs-on: ubuntu-latest # the environment (like a virtual computer)
check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3 # step 1: get your code from GitHub
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v5 # step 2: install Python
uses: actions/setup-python@v5
with:
python-version: '3.10' # version to use
python-version: '3.10'

- name: Run a test command
run: python --version # step 3: run your Python command
- name: Check Python Syntax
run: |
python -m compileall .
File renamed without changes.
19 changes: 19 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# config.yaml - Professional Python Practice Settings

user:
name: "Akhileswar Kamale"
github: "https://github.com/Akhileswar6"
linkedin: "https://www.linkedin.com/in/akhileswar-kamale"

python:
version: "3.10"
show_welcome_message: true

folders:
basics: true
intermediate: true
problems: true

settings:
display_output: true
log_errors: true
6 changes: 0 additions & 6 deletions file.txt

This file was deleted.

3 changes: 0 additions & 3 deletions file1.txt

This file was deleted.

3 changes: 0 additions & 3 deletions file2.txt

This file was deleted.

16 changes: 0 additions & 16 deletions iss.txt

This file was deleted.

21 changes: 21 additions & 0 deletions load_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import yaml

# Load YAML config
with open("config.yml", "r") as file:
config = yaml.safe_load(file)

# Example: display user info
user = config["user"]
print(f"Hello, {user['name']}!")
print(f"GitHub: {user['github']}")
print(f"LinkedIn: {user['linkedin']}")

# Example: check active folders
folders = config["folders"]
for folder, active in folders.items():
status = "active" if active else "inactive"
print(f"{folder} folder is {status}")

# Example: conditional message
if config["python"]["show_welcome_message"]:
print("\nWelcome to Python Practice Repository!\n")
2 changes: 0 additions & 2 deletions sample.txt

This file was deleted.