Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Workflow now checks more OS #64

Merged
merged 38 commits into from
Sep 26, 2023
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
79a1155
Tried using a os matrix like I saw in gatorgrade
Poiuy7312 Sep 15, 2023
58d4481
Edited workflow
Poiuy7312 Sep 16, 2023
11d3530
Checking Error
Poiuy7312 Sep 16, 2023
d7a3f5a
added bracnh to workflow
Poiuy7312 Sep 16, 2023
8f6e44a
Removed python 3.10 from ubuntu. Added conditional
Poiuy7312 Sep 16, 2023
30340ab
Update poetry.lock
Poiuy7312 Sep 16, 2023
a2f00a4
Update pyproject.toml
Poiuy7312 Sep 16, 2023
1060f63
got rid of special character in main.py
Poiuy7312 Sep 16, 2023
dd40f83
Update main.py
Poiuy7312 Sep 16, 2023
83105fb
Update main.py
Poiuy7312 Sep 16, 2023
0bde930
Removed pysqlite3
Poiuy7312 Sep 18, 2023
6c52e57
Merge branch 'Work-flow-changes-to-check-more-OS' of github.com:Astut…
Poiuy7312 Sep 18, 2023
ebf14f4
trying to change windows encoding
Poiuy7312 Sep 18, 2023
bdf6ba3
Trying a different approach to change encoding
Poiuy7312 Sep 18, 2023
3bcd345
Encoding Windows
Poiuy7312 Sep 18, 2023
fa53f10
Removed Special characters
Poiuy7312 Sep 18, 2023
d489d23
Removed sparkles
Poiuy7312 Sep 18, 2023
6691550
Removed characters
Poiuy7312 Sep 18, 2023
b247a41
Added special character back
Poiuy7312 Sep 19, 2023
0bd58bd
Reformatted Main.py
Poiuy7312 Sep 19, 2023
6a8acd9
style: changed chasten.emoji in constants.py to *
Poiuy7312 Sep 19, 2023
bb21175
style: removed link character from constants.py
Poiuy7312 Sep 19, 2023
2505ec1
style: removed :sparkles: from main.py
Poiuy7312 Sep 19, 2023
18e4190
style: removed special characters from main.py
Poiuy7312 Sep 19, 2023
3703e4f
style: got rid of checkmarks in util.py
Poiuy7312 Sep 19, 2023
2394e39
style: removed emoji in main.py
Poiuy7312 Sep 19, 2023
58ca98f
style: added special character back to main.py
Poiuy7312 Sep 20, 2023
92815b1
style: Added special characters back
Poiuy7312 Sep 20, 2023
23fff71
style: added special characters back to util.py
Poiuy7312 Sep 20, 2023
9004f84
fix: trying to change encoding for workflow.
Poiuy7312 Sep 20, 2023
6a4ce73
style: fixed formatting in main.py
Poiuy7312 Sep 20, 2023
6459e7b
revert: removed Work-flow branch from workflow
Poiuy7312 Sep 20, 2023
912dd6a
Merge branch 'master' into Work-flow-changes-to-check-more-OS
Poiuy7312 Sep 20, 2023
5a2b0ed
style: reformatted main.py and util.py
Poiuy7312 Sep 20, 2023
5b86af3
fix: got rid of .version for a string in util.py
Poiuy7312 Sep 20, 2023
0de2ae4
fix: removed version command from main
Poiuy7312 Sep 20, 2023
0861276
style: reformatted main & util
Poiuy7312 Sep 20, 2023
50b4bdd
Merge branch 'master' into Work-flow-changes-to-check-more-OS
Poiuy7312 Sep 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 17 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name: build
# Use more columns for terminal output
env:
COLUMNS: 120
PYTHONIOENCODING: utf8

# Controls when the action will run
# Workflow begins with push or PR events
Expand All @@ -18,12 +19,18 @@ on:
# This job performs all necessary checks
jobs:
build:
# Use the latest version of Ubuntu on Microsoft Azure
runs-on: ubuntu-latest
# Use the latest version of Ubuntu on MacOS and Windows
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# Performs all actions on different versions of Python
python-version: ['3.11']
os: [ubuntu-latest]
python-version: ["3.11"]
include:
- os: macos-latest
python-version: "3.11"
- os: windows-latest
python-version: "3.11"
# Define the workflow steps
steps:
# Checkout the code of the repository
Expand All @@ -34,6 +41,7 @@ jobs:
# Run the mdl linting tool
# Refers to .mdlrc file in repository
- name: Run Markdown Linting
if: matrix.os == 'ubuntu-latest'
uses: actionshub/markdownlint@main
# Setup Python for the current language version
- name: Setup Python ${{ matrix.python-version }}
Expand Down Expand Up @@ -62,11 +70,12 @@ jobs:
if: always()
run: |
poetry run task lint
# Run the program
# Run the program
- name: Run program
if: always()
run: |
poetry run chasten analyze chasten --config $PWD/.chasten/ --debug-level ERROR --debug-dest CONSOLE --search-path .
poetry run chasten analyze chasten --config $PWD/.chasten/ --debug-level ERROR --debug-dest CONSOLE --search-path .
# Run the tests
- name: Run Tests
if: always()
Expand All @@ -79,7 +88,7 @@ jobs:
poetry run task test-coverage-silent > coverage.txt
# Display the Coverage Report
- name: Display Coverage
if: always()
if: always() && matrix.os == 'ubuntu-latest'
run: |
export TOTAL=$(python -c "import json;print(json.load(open('coverage.json'))['totals']['percent_covered_display'])")
echo "total=$TOTAL" >> $GITHUB_ENV
Expand All @@ -98,4 +107,4 @@ jobs:
message: ${{ env.total }}%
minColorRange: 50
maxColorRange: 90
valColorRange: ${{ env.total }}
valColorRange: ${{ env.total }}