Skip to content

Commit

Permalink
Edited workflow
Browse files Browse the repository at this point in the history
Poiuy7312 committed Sep 16, 2023
1 parent 79a1155 commit 58d4481
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -10,27 +10,20 @@ env:
# Focuses on the master branch only
on:
push:
branches: [ master ]
branches: [ master , Work-flow-changes-to-check-more-OS]
pull_request:
branches: [ master ]

# Create one single job
# This job performs all necessary checks
jobs:
build:
# Use the latest version of Ubuntu,Windows and MacOS
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]
# Performs all actions on different versions of Python and OS
python-version: ['3.10','3.11']
include:
- os: macos-latest
python-version: ["3.10","3.11"]
- os: windows-latest
python-version: ["3.10","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
@@ -75,6 +68,20 @@ jobs:
run: |
poetry run chasten analyze chasten --config $PWD/.chasten/ --debug-level ERROR --debug-dest CONSOLE --search-path .
# Run the tests
test:
name: Test
runs-on: ${{ matrix.os }}
needs: build
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.10","3.11"]
include:
- os: macos-latest
python-version: "3.11"
- os: windows-latest
python-version: "3.11"
steps:
- name: Run Tests
if: always()
run: |
@@ -105,4 +112,4 @@ jobs:
message: ${{ env.total }}%
minColorRange: 50
maxColorRange: 90
valColorRange: ${{ env.total }}
valColorRange: ${{ env.total }}

0 comments on commit 58d4481

Please sign in to comment.