forked from CSC-510-G55/hw1
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from CSC-510-G55/static-workflows
feat: workflows + badges for pylint & radon
- Loading branch information
Showing
5 changed files
with
82 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Pylint | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
pylint: | ||
name: Pylint | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Environment | ||
run: | | ||
chmod +x ./.github/workflows/setup.sh && ./.github/workflows/setup.sh | ||
pip install pylint | ||
- name: Run Pylint | ||
run: | | ||
output=$(pylint hw2_debugging.py rand.py --output-format=parseable) | ||
echo "$output" > pylint.txt | ||
echo "::notice title=Pylint::$output" | ||
- name: Pylint report | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: pylint-report | ||
path: pylint.txt |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Radon | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
radon: | ||
name: Radon | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Environment | ||
run: | | ||
chmod +x ./.github/workflows/setup.sh && ./.github/workflows/setup.sh | ||
pip install radon | ||
- name: Run Radon | ||
run: | | ||
output=$(radon cc hw2_debugging.py rand.py -s) | ||
echo "$output" > radon.txt | ||
echo "::notice title=Radon::$output" | ||
- name: Radon report | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: radon-report | ||
path: radon.txt |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
|
||
sudo apt update -y | ||
sudo apt upgrade -y | ||
sudo apt install software-properties-common -y | ||
sudo add-apt-repository ppa:deadsnakes/ppa -y | ||
sudo apt update -y | ||
sudo apt install python3.13 -y | ||
|
||
alias python=python3.13 | ||
alias pip='python3.13 -m pip' |
This file contains 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
This file contains 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