Skip to content

Commit

Permalink
Add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Laguna1989 committed Aug 23, 2024
1 parent 4ecd2ab commit 5ccf929
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Validate C++

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

jobs:
UnitTests:
runs-on: ubuntu-latest

steps:
- name: Set up cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.19.x'

- name: Set up gcc
uses: egor-tensin/setup-gcc@v1
with:
version: 9
platform: x64

- uses: actions/checkout@v2

- name: CMake
working-directory: ${{github.workspace}}/cpp
run: cmake -B ${{github.workspace}}/build .

- name: Build
working-directory: ${{github.workspace}}/build
run: make

- name: Test
working-directory: ${{github.workspace}}/build
run: ./unittests
31 changes: 31 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Validate Python

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install dependencies
working-directory: ${{github.workspace}}/python
run: |
pip install -r requirements.txt
- name: run pytests
working-directory: ${{github.workspace}}/python
run: |
python -m pytest

0 comments on commit 5ccf929

Please sign in to comment.