Skip to content

Commit

Permalink
Migrate to gh-actions (#535)
Browse files Browse the repository at this point in the history
* Add action

* typo

* add cov

* deps

* add snappy

* add runs, remove travis

* typo
  • Loading branch information
martindurant authored Dec 10, 2020
1 parent 6b36f9d commit 8d2ffec
Show file tree
Hide file tree
Showing 7 changed files with 135 additions and 49 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/main.yaml
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
26 changes: 26 additions & 0 deletions .github/workflows/pypipublish.yaml
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/*
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

23 changes: 23 additions & 0 deletions ci/environment-py37.yml
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
23 changes: 23 additions & 0 deletions ci/environment-py37z.yml
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
23 changes: 23 additions & 0 deletions ci/environment-py38.yml
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
22 changes: 0 additions & 22 deletions tox.ini

This file was deleted.

0 comments on commit 8d2ffec

Please sign in to comment.