From ee6c9b2fba4cc983a7d917a737c049288da93573 Mon Sep 17 00:00:00 2001 From: Preston Smith <112420784+Poiuy7312@users.noreply.github.com> Date: Wed, 20 Sep 2023 09:59:38 -0400 Subject: [PATCH] reverted: build.yml --- .github/workflows/build.yml | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ae3fe94b..8ab68c16 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,7 +4,6 @@ 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 @@ -19,18 +18,12 @@ on: # This job performs all necessary checks jobs: build: - # Use the latest version of Ubuntu on MacOS and Windows - runs-on: ${{ matrix.os }} + # Use the latest version of Ubuntu on Microsoft Azure + runs-on: ubuntu-latest strategy: - fail-fast: false matrix: - os: [ubuntu-latest] - python-version: ["3.11"] - include: - - os: macos-latest - python-version: "3.11" - - os: windows-latest - python-version: "3.11" + # Performs all actions on different versions of Python + python-version: ['3.11'] # Define the workflow steps steps: # Checkout the code of the repository @@ -41,7 +34,6 @@ 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 }} @@ -70,12 +62,11 @@ 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() @@ -88,7 +79,7 @@ jobs: poetry run task test-coverage-silent > coverage.txt # Display the Coverage Report - name: Display Coverage - if: always() && matrix.os == 'ubuntu-latest' + if: always() run: | export TOTAL=$(python -c "import json;print(json.load(open('coverage.json'))['totals']['percent_covered_display'])") echo "total=$TOTAL" >> $GITHUB_ENV @@ -107,4 +98,4 @@ jobs: message: ${{ env.total }}% minColorRange: 50 maxColorRange: 90 - valColorRange: ${{ env.total }} \ No newline at end of file + valColorRange: ${{ env.total }}