Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Commit

Permalink
71 add GH actions and create a job for running unittests (#75)
Browse files Browse the repository at this point in the history
* test GH actions

* added job to run units

* make test

* test

* change unittest command

* add pipenv to pipeline

* set working directory

* added proper env setup

* rm pipenv version

* comment pip-cache

* rename file

* change trigger type

* added integration tests to GH actions
  • Loading branch information
sakhatskyi authored Jul 26, 2022
1 parent 6c52c97 commit 33b6fce
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Tests
on: [pull_request]
jobs:
Run-Integration-Tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2 # Checking out the repo

- name: Run Build
run: |
make build
- name: Run tests
run: |
make test
- run: echo "🍏 This job's status is ${{ job.status }}."
24 changes: 24 additions & 0 deletions .github/workflows/python-unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Tests
on: [pull_request]
jobs:
Run-Unit-Tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2 # Checking out the repo

- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: "3.6"
architecture: x64

- name: Install pipenv
run: |
pip install pipenv==2022.4.8
- name: Install environment
run: pipenv install --system --deploy --ignore-pipfile --dev

- name: Run Unit Tests
run: |
make unittest
- run: echo "🍏 This job's status is ${{ job.status }}."

0 comments on commit 33b6fce

Please sign in to comment.