Merge pull request #2 from deep-div/dev #7
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 CI Pipeline | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # 1. Checkout source code | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| # 2. Install Python | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| # 3. Install dependencies | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| # # 4. Run linting (code quality check) | |
| # - name: Run Flake8 Linting | |
| # run: | | |
| # pip install flake8 | |
| # flake8 app --max-line-length=120 |