Skip to content

Commit

Permalink
Migrate CI to GitHub Actions (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtomlinson authored Nov 11, 2020
1 parent 77b5993 commit 29fa358
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 31 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI

on: [push, pull_request]

jobs:
test:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8"]

steps:
- name: Checkout source
uses: actions/checkout@v2

- name: Setup Conda Environment
uses: conda-incubator/setup-miniconda@16930e6
with:
auto-update-conda: true
miniconda-version: latest
activate-environment: test
python-version: ${{ matrix.python-version }}

- name: Install dependencies
shell: bash -l {0}
run: |
conda install -c conda-forge pytest requests decorator google-auth vcrpy aiohttp google-auth-oauthlib flake8 black google-cloud-core google-api-core google-api-python-client -y
pip install git+https://github.com/intake/filesystem_spec --no-deps
conda list
conda --version
- name: Install
shell: bash -l {0}
run: python setup.py install

- name: Run Tests
shell: bash -l {0}
run: GCSFS_RECORD_MODE=none py.test -vv gcsfs

- name: Lint
shell: bash -l {0}
run: |
flake8 gcsfs
black gcsfs --check
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
gcsfs
=====

.. |Build Status| image:: https://github.com/dask/gcsfs/workflows/CI/badge.svg
:target: https://github.com/dask/gcsfs/actions

Pythonic file-system for Google Cloud Storage


Expand Down

0 comments on commit 29fa358

Please sign in to comment.