forked from jcrobak/parquet-python
-
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add action * typo * add cov * deps * add snappy * add runs, remove travis * typo
- Loading branch information
1 parent
6b36f9d
commit 8d2ffec
Showing
7 changed files
with
135 additions
and
49 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,40 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: "*" | ||
pull_request: | ||
branches: master | ||
|
||
jobs: | ||
test: | ||
name: ${{ matrix.CONDA_ENV }}-pytest | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
CONDA_ENV: [py37, py38, py37z] | ||
steps: | ||
- name: APT | ||
run: sudo apt-get install liblzo2-dev libsnappy-dev | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Miniconda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
auto-activate-base: false | ||
activate-environment: test_env | ||
environment-file: ci/environment-${{ matrix.CONDA_ENV }}.yml | ||
|
||
- name: pip-install | ||
shell: bash -l {0} | ||
run: | | ||
pip install -e . --no-deps | ||
- name: Run Tests | ||
shell: bash -l {0} | ||
run: | | ||
pytest --verbose --cov=fastparquet |
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,26 @@ | ||
name: Upload Python Package | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.x" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools setuptools-scm wheel twine | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* |
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
name: test_env | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- python=3.7 | ||
- brotli | ||
- bson | ||
- lz4 | ||
- lzo | ||
- snappy | ||
- zstandard | ||
- pytest | ||
- numba | ||
- cython | ||
- pandas | ||
- dask | ||
- pytest-cov | ||
- thrift | ||
- numpy | ||
- packaging | ||
- six | ||
- python-snappy |
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,23 @@ | ||
name: test_env | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- python=3.7 | ||
- brotli | ||
- bson | ||
- lz4 | ||
- lzo | ||
- snappy | ||
- zstd | ||
- pytest | ||
- numba | ||
- cython | ||
- pandas | ||
- dask | ||
- pytest-cov | ||
- thrift | ||
- numpy | ||
- packaging | ||
- six | ||
- python-snappy |
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,23 @@ | ||
name: test_env | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- python=3.8 | ||
- brotli | ||
- bson | ||
- lz4 | ||
- lzo | ||
- snappy | ||
- zstandard | ||
- pytest | ||
- numba | ||
- cython | ||
- pandas | ||
- dask | ||
- pytest-cov | ||
- thrift | ||
- numpy | ||
- packaging | ||
- six | ||
- python-snappy |