Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Github action to run unittest #65

Merged
merged 3 commits into from
Feb 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/run-unittest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CBI unittest

permissions: read-all

on:
push:
branches: [ "main" ]
paths:
- 'bin/**'
- 'codebasin/**'
- 'etc/**'
- 'tests/**'
- 'MANIFEST.in'
- 'setup.py'
pull_request:
branches: [ "main" ]
paths:
- 'bin/**'
- 'codebasin/**'
- 'etc/**'
- 'tests/**'
- 'MANIFEST.in'
- 'setup.py'

Pennycook marked this conversation as resolved.
Show resolved Hide resolved
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# currently just one version, but later releases can be
# added as they're needed
python-version: ["3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install `code-base-investigator`
run: |
python -m pip install -U pip
pip install .
- name: Run `unittest`
run: |
python -m unittest
Loading