Skip to content

Commit aeb4c5d

Browse files
authored
Merge pull request #395 from jacobtomlinson/migrate-to-github-actions
Migrate CI to GitHub Actions
2 parents 9072e05 + f878c9a commit aeb4c5d

File tree

3 files changed

+55
-34
lines changed

3 files changed

+55
-34
lines changed

.github/workflows/ci.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
name: Python ${{ matrix.python-version }}
8+
runs-on: ubuntu-latest
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
python-version: ["3.7", "3.8"]
13+
14+
env:
15+
BOTO_CONFIG: /dev/null
16+
AWS_ACCESS_KEY_ID: foobar_key
17+
AWS_SECRET_ACCESS_KEY: foobar_secret
18+
19+
steps:
20+
- name: Checkout source
21+
uses: actions/checkout@v2
22+
with:
23+
fetch-depth: 0
24+
25+
- name: Setup Conda Environment
26+
uses: conda-incubator/setup-miniconda@16930e6
27+
with:
28+
auto-update-conda: true
29+
miniconda-version: latest
30+
activate-environment: test
31+
python-version: ${{ matrix.python-version }}
32+
33+
- name: Install dependencies
34+
shell: bash -l {0}
35+
run: |
36+
conda install -c conda-forge pip botocore aiobotocore moto pytest flake8 black -y
37+
pip install git+https://github.com/intake/filesystem_spec --no-deps
38+
conda list
39+
conda --version
40+
41+
- name: Install
42+
shell: bash -l {0}
43+
run: python setup.py install
44+
45+
- name: Run Tests
46+
shell: bash -l {0}
47+
run: py.test -vv s3fs
48+
49+
- name: Lint
50+
shell: bash -l {0}
51+
run: |
52+
flake8 s3fs
53+
black s3fs --check

.travis.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ View the documentation_ for s3fs.
1010
.. _documentation: http://s3fs.readthedocs.io/en/latest/
1111
.. _botocore: https://botocore.readthedocs.io/en/latest/
1212

13-
.. |Build Status| image:: https://travis-ci.org/dask/s3fs.svg?branch=master
14-
:target: https://travis-ci.org/dask/s3fs
13+
.. |Build Status| image:: https://github.com/dask/s3fs/workflows/CI/badge.svg
14+
:target: https://github.com/dask/s3fs/actions
1515
:alt: Build Status
1616
.. |Doc Status| image:: https://readthedocs.org/projects/s3fs/badge/?version=latest
1717
:target: https://s3fs.readthedocs.io/en/latest/?badge=latest

0 commit comments

Comments
 (0)