Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kerim371 authored Sep 21, 2021
1 parent 40429c3 commit 4ed91fe
Showing 1 changed file with 56 additions and 11 deletions.
67 changes: 56 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,20 @@ on:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
Ubuntu:
# The type of runner that the job will run on
runs-on: ubuntu-latest

strategy:
max-parallel: 4
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Install Python 3
- name: Install Python 3 on Ubuntu
uses: actions/setup-python@v1
with:
python-version: 3.6
Expand All @@ -33,13 +38,53 @@ jobs:
python -m pip install --upgrade pip
python -m pip install cppguts
python -m unittest cppguts.tests.test_cppguts
# This workflow contains a single job called "build"
OSX:
# The type of runner that the job will run on
runs-on: macos-latest

strategy:
max-parallel: 4
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Install Python 3 on OSX
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Run tests with unittest
run: |
python -m pip install --upgrade pip
python -m pip install cppguts
python -m unittest cppguts.tests.test_cppguts
# This workflow contains a single job called "build"
Windows:
# The type of runner that the job will run on
runs-on: windows-latest

strategy:
max-parallel: 4
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]

# # Runs a single command using the runners shell
# - name: Run a one-line script
# run: echo Hello, world!
#
# # Runs a set of commands using the runners shell
# - name: Run a multi-line script
# run: |
# echo Add other actions to build,
# echo test, and deploy your project.
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Install Python 3 on Windows
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Run tests with unittest
run: |
python -m pip install --upgrade pip
python -m pip install cppguts
python -m unittest cppguts.tests.test_cppguts

0 comments on commit 4ed91fe

Please sign in to comment.