From 83b8d8d34e51fa3aee9c1e20ce779960281d8197 Mon Sep 17 00:00:00 2001 From: raynardj Date: Wed, 27 Apr 2022 18:47:51 +0800 Subject: [PATCH] Test Action --- .DS_Store | Bin 6148 -> 0 bytes .github/workflows/test.yml | 38 +++++++++++++++++++++++++++++++++++++ README.md | 4 +++- requirements-test.txt | 2 ++ 4 files changed, 43 insertions(+), 1 deletion(-) delete mode 100644 .DS_Store create mode 100644 .github/workflows/test.yml create mode 100644 requirements-test.txt diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 2770dd9012fb60008c95fbedc9e304607c528660..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK!A=4(5N!dqV2m709@N0DOJoz=8g`K=V)i%mkNg6E z$CU#9IP7Z?}gj}A7QJ}^xHHv~*&*Pc_A@U;M zDV8Radb3%UwMunbmXk)KQkM1F{&bobyL;7xRl=7t7S7^_)Rbqe`_!$FuK1fhR$6{(wA05!(^%2K& zh$vv=TLMv9bS$O@VFZMmR6vu;?GuBWbnr_X=U7Y)nsmnX$}o>zncEi%*QTt## zgVYiO#K0m0S<@|I{XhEt{lAz*Jz{_u_*V?@T-$B8U`w{PE^Q8Ltpx3YqF`KVaGnB& hF2xXwrMLvD1^f~XK*wTg5Ii7s5zsVHLk#>X10RY)P^$m{ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..d63e55b --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,38 @@ +name: Test + +on: + push: + paths-ignore: + - 'docs/**' + - '**.md' + - '**.ipynb' + +jobs: + build-linux: + runs-on: ubuntu-latest + strategy: + matrix: + python: [3.7, 2.8] + os: [ubuntu-latest] + include: + - python: 3.8 + os: macos-latest + experimental: true + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python }} on ${{ matrix.os }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + - name: Add conda to system path + run: | + # $CONDA is an environment variable pointing to the root of the miniconda directory + echo $CONDA/bin >> $GITHUB_PATH + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements-test.txt + pip install -e . + - name: Test with pytest + run: pytest -vv \ No newline at end of file diff --git a/README.md b/README.md index a64b56c..1042f05 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,13 @@ # ForgeBox -> Data science comprehensive toolbox + [![PyPI version](https://img.shields.io/pypi/v/forgebox)](https://pypi.org/project/forgebox/) ![Python version](https://img.shields.io/pypi/pyversions/forgebox) ![License](https://img.shields.io/github/license/raynardj/forgebox) ![PyPI Downloads](https://img.shields.io/pypi/dm/forgebox) [![pypi build](https://github.com/raynardj/forgebox/actions/workflows/publish.yml/badge.svg)](https://github.com/raynardj/forgebox/actions/workflows/publish.yml) +> Data science comprehensive toolbox + ## Installation Easy simple installation in 1 line diff --git a/requirements-test.txt b/requirements-test.txt new file mode 100644 index 0000000..1d6ed5c --- /dev/null +++ b/requirements-test.txt @@ -0,0 +1,2 @@ +pytest +pytest-mock \ No newline at end of file