Skip to content

Commit

Permalink
[CI] Extend python-app.yml to run pytests also on Mac/OSX.
Browse files Browse the repository at this point in the history
  • Loading branch information
gapisback committed May 1, 2024
1 parent ef397ad commit 1025666
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# ##############################################################################
# This workflow will install required s/w components on Linux and Mac/OSX.
# Run through different `make` targets to build-and-test test-code and
# unit-tests, sample programs that invoke the LOC-encoding schemes.
# ##############################################################################

name: LineOfCode-Build and Test
#! -----------------------------------------------------------------------------
# Ref: For running jobs on Linux & Mac/OSX with one workflow.
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# ##############################################################################
# This workflow will install Python dependencies, run tests and lint with a
# single version of Python.
# For more information see:
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
# ##############################################################################

name: Python pytests
#! -----------------------------------------------------------------------------
# Ref: For running jobs on Linux & Mac/OSX with one workflow.
# https://stackoverflow.com/questions/57946173/github-actions-run-step-on-specific-os
#! -----------------------------------------------------------------------------
on:
push:
branches: [ "main" ]
Expand All @@ -16,7 +22,10 @@ permissions:
jobs:
build:

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]

steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 1025666

Please sign in to comment.