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