This repository has been archived by the owner on Oct 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
71 add GH actions and create a job for running unittests (#75)
* 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
1 parent
6c52c97
commit 33b6fce
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}." |