-
Notifications
You must be signed in to change notification settings - Fork 269
53 lines (44 loc) · 1.3 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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.6", "3.7", "3.8", "3.9"]
env:
BOTO_CONFIG: /dev/null
AWS_ACCESS_KEY_ID: foobar_key
AWS_SECRET_ACCESS_KEY: foobar_secret
steps:
- name: Checkout source
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Conda Environment
uses: conda-incubator/setup-miniconda@v2
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 pip botocore aiobotocore==2.0.1 "aiohttp<=4" "moto>=2.0" pytest flake8 black -y
pip install git+https://github.com/fsspec/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: pytest -vv s3fs
- name: Lint
shell: bash -l {0}
run: |
flake8 s3fs
black s3fs --check --diff