Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to gh-actions #535

Merged
merged 7 commits into from
Dec 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.