diff --git a/.github/workflows/upstream.yml b/.github/workflows/upstream.yml new file mode 100644 index 0000000..becb651 --- /dev/null +++ b/.github/workflows/upstream.yml @@ -0,0 +1,42 @@ +name: CI + +on: [push, pull_request] + +jobs: + test: + name: Upstream + runs-on: ubuntu-latest + strategy: + fail-fast: false + + steps: + - name: Checkout source + uses: actions/checkout@v2 + + - name: Setup Conda Environment + uses: conda-incubator/setup-miniconda@v2.2.0 + with: + miniforge-variant: Mambaforge + miniforge-version: latest + use-mamba: true + channel-priority: strict + python-version: "3.11" + auto-activate-base: false + + - name: Install dependencies + shell: bash -l {0} + run: mamba install pytest locket numpy toolz pandas blosc pyzmq pyarrow -c conda-forge + + - name: Install nightly deps + shell: bash -l {0} + run: | + pip install --pre -U --no-deps --index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy pandas + pip install --pre -U --no-deps --index-url https://pypi.fury.io/arrow-nightlies/ pyarrow + + - name: Install + shell: bash -l {0} + run: python setup.py install + + - name: Run Tests + shell: bash -l {0} + run: pytest partd --verbose diff --git a/setup.cfg b/setup.cfg index 72c4b4e..cfbea91 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,4 +8,9 @@ parentdir_prefix = partd- [tool:pytest] addopts = --strict-markers --strict-config -filterwarnings = error +filterwarnings = + error + ignore:numpy\.core.* is deprecated and has been renamed to numpy\._core\.*:DeprecationWarning:pandas + ignore:numpy\.core.* is deprecated and has been renamed to numpy\._core\.*:DeprecationWarning:pyarrow + ignore:create_block_manager_from_blocks is deprecated and will be removed in a future version. Use public APIs instead.:DeprecationWarning + ignore:Passing a BlockManager to DataFrame is deprecated and will raise in a future version. Use public APIs instead.:DeprecationWarning