diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..3f2bf3bd --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,19 @@ +on: push +jobs: + build: + runs-on: macos-latest + strategy: + matrix: + python-version: [ '3.6' ] + name: Python ${{ matrix.python-version }} Tests + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + architecture: x64 + - name: Install Dependencies + run: pip install -r requirements.txt + - name: Run Tests + run: python -m unittest \ No newline at end of file diff --git a/README.md b/README.md index 95d70bdc..79fbd448 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,18 @@ # Fast and scalable fitting of over-determined generalized-linear models (GLMs) batchglm was developed in the context of [diffxpy](https://github.com/theislab/diffxpy) to allow fast model fitting for differential expression analysis for single-cell RNA-seq data. However, one can use batchglm or its concepts in other scenarios where over-determined GLMs are encountered. + +``` +pip install -r requirements.txt +``` + +To run unit tests: + +``` +pip install -e . +python -m unittest +``` +