Merge pull request #26 from iNoles/renovate/pydantic-2.x #87
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: Python Build on macOS | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' # You can specify e.g., '3.11' if needed | |
- name: Install dependencies | |
run: | | |
python3 -m venv venv | |
source venv/bin/activate | |
python -m pip install --upgrade pip | |
python -m pip install -r requirements.txt | |
shell: bash # Ensure bash shell for source to work | |
- name: Run Python Script | |
run: | | |
source venv/bin/activate | |
echo "Software Engineer skilled in Python, Java, and C++" | python3 main.py | |
shell: bash |