Skip to content

Commit

Permalink
Merge branch 'Work-flow-changes-to-check-more-OS' into fix/revert-mas…
Browse files Browse the repository at this point in the history
…ter-commits
  • Loading branch information
Poiuy7312 authored Sep 20, 2023
2 parents 6ce3ed2 + 5b86af3 commit a5cb2b8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
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 }}
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ datasette-search-all = "^1.1.1"
sqlite-utils = "^3.34"
sqlean-py = "^0.21.5.3"
datasette-sqlite-regex = "^0.2.3"
pysqlite3 = "^0.5.1"
sqlite-regex = "^0.2.3"
datasette-publish-vercel = "^0.14.2"

Expand Down

0 comments on commit a5cb2b8

Please sign in to comment.