|
| 1 | +# Basic workflow |
| 2 | +name: build |
| 3 | + |
| 4 | +# Controls when the action will run |
| 5 | +# Workflow begins with push or PR events |
| 6 | +# Focuses on the master branch only |
| 7 | +on: |
| 8 | + push: |
| 9 | + branches: [ main ] |
| 10 | + pull_request: |
| 11 | + branches: [ main ] |
| 12 | + |
| 13 | +# Create one single job |
| 14 | +# This job performs all necessary checks |
| 15 | +jobs: |
| 16 | + build: |
| 17 | + # Use the latest version of Ubuntu on Microsoft Azure |
| 18 | + runs-on: ubuntu-latest |
| 19 | + strategy: |
| 20 | + matrix: |
| 21 | + # Performs all actions on different versions of Python |
| 22 | + python-version: ["3.13"] |
| 23 | + # Define the workflow steps |
| 24 | + steps: |
| 25 | + # Checkout the code of the repository |
| 26 | + - name: Check out Repository Code |
| 27 | + uses: actions/checkout@v2 |
| 28 | + with: |
| 29 | + fetch-depth: 0 |
| 30 | + # Run the mdl linting tool |
| 31 | + # Refers to .mdlrc file in repository |
| 32 | +# - name: Run Markdown Linting |
| 33 | +# uses: actionshub/markdownlint@main |
| 34 | + # Setup Python for the current language version |
| 35 | + - name: Setup Python ${{ matrix.python-version }} |
| 36 | + if: always() |
| 37 | + uses: actions/setup-python@v1 |
| 38 | + with: |
| 39 | + python-version: ${{ matrix.python-version }} |
| 40 | + # Install pip |
| 41 | + - name: Install Pip |
| 42 | + if: always() |
| 43 | + run: | |
| 44 | + pip install -U pip |
| 45 | + # Install pipenv |
| 46 | + # - name: Install Pipenv |
| 47 | + # if: always() |
| 48 | + # run: | |
| 49 | + # pip install pipenv |
| 50 | + # # Install poetry |
| 51 | + - name: Install Poetry |
| 52 | + if: always() |
| 53 | + uses: abatilo/actions-poetry@v2.0.0 |
| 54 | + with: |
| 55 | + poetry-version: 1.1.8 |
| 56 | + # Run the Python program |
| 57 | + - name: Run Python Program |
| 58 | + if: always() |
| 59 | + run: | |
| 60 | + echo __________ pwd __________ |
| 61 | + pwd |
| 62 | +
|
| 63 | + echo __________ ls -l __________ |
| 64 | + ls -l |
| 65 | +
|
| 66 | + echo __________ ls -l __________ |
| 67 | + ls -l |
| 68 | +
|
| 69 | + echo __________ poetry install __________ |
| 70 | + poetry install |
| 71 | +
|
| 72 | + echo _______________ poetry run captchaaudio --bighelp ______________ |
| 73 | + poetry run captchaaudio --bighelp |
| 74 | + # Run the black code formatter in checking mode |
| 75 | + # - name: Run Black Code Formatter |
| 76 | + # run: | |
| 77 | + # cd gcs |
| 78 | + # poetry run task black |
| 79 | + # # Run the flake8 linting tool |
| 80 | + # - name: Run Flake8 Linting Tool |
| 81 | + # run: | |
| 82 | + # cd gcs |
| 83 | + # poetry run task flake8 |
| 84 | + # Run the pydocstyle linting tool |
| 85 | + # - name: Run Pydocstyle Linting Tool |
| 86 | + # run: | |
| 87 | + # cd gcs |
| 88 | + # poetry run task pydocstyle |
| 89 | + # Run the pylint linting tool |
| 90 | + # - name: Run Pylint Linting Tool |
| 91 | + # run: | |
| 92 | + # cd gcs |
| 93 | + # poetry run task pylint |
| 94 | + # Run the mypy type checking tool |
| 95 | + # - name: Run Pylint Linting Tool |
| 96 | + # run: | |
| 97 | + # cd gcs |
| 98 | + # poetry run task mypy |
| 99 | + # Run GatorGrader: see config/gatorgrade.yml |
| 100 | + # - name: Run GatorGrader with GatorGrade |
| 101 | + # if: always() |
| 102 | + # run: | |
| 103 | + # pip install gatorgrade |
| 104 | + # gatorgrade --config config/gatorgrade.yml |
0 commit comments