forked from fsspec/filesystem_spec
-
Notifications
You must be signed in to change notification settings - Fork 0
173 lines (145 loc) · 3.65 KB
/
main.yaml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
name: CI
on:
push:
branches: "*"
pull_request:
branches: master
jobs:
linux:
name: ${{ matrix.PY }}-pytest
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
PY: ["3.8", "3.9", "3.10", "3.11"]
env:
CIRUN: true
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup conda
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ci/environment-py38.yml
create-args: >-
python=${{ matrix.PY }}
- name: Run Tests
shell: bash -l {0}
run: |
pytest -v
win:
name: pytest-win
runs-on: windows-2019
strategy:
fail-fast: false
env:
CIRUN: true
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup conda
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ci/environment-win.yml
- name: Run Tests
shell: bash -l {0}
run: |
pytest -v
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: actions/setup-python@main
with:
python-version: "3.11"
- uses: pre-commit/action@main
# typecheck:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v3
#
# - name: Setup conda
# uses: mamba-org/setup-micromamba@v1
# with:
# environment-file: ci/environment-typecheck.yml
#
# - name: mypy
# shell: bash -l {0}
# run: |
# mypy fsspec
#
downstream:
name: downstream
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup conda
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ci/environment-downstream.yml
- name: Local install
shell: bash -l {0}
run: |
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git tag -a 3000 -m "fake"
pip install -e .
- name: Clone s3fs
shell: bash -l {0}
run: git clone https://github.com/fsspec/s3fs
- name: Install s3fs
shell: bash -l {0}
run: |
pip install -e ./s3fs --no-deps
- name: Run fsspec tests
shell: bash -l {0}
run: |
pytest -v fsspec/tests/test_downstream.py
- name: clone dask
shell: bash -l {0}
run: |
git clone https://github.com/dask/dask
pip install -e ./dask
- name: Run dask tests
shell: bash -l {0}
run: |
pytest -v dask/dask/bytes
fsspec_friends:
name: ${{ matrix.FRIEND }}-pytest
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
FRIEND: [gcsfs, s3fs]
env:
CIRUN: true
BOTO_CONFIG: /dev/null
AWS_ACCESS_KEY_ID: foobar_key
AWS_SECRET_ACCESS_KEY: foobar_secret
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup conda
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ci/environment-friends.yml
- name: Clone
shell: bash -l {0}
run: git clone https://github.com/fsspec/${{ matrix.FRIEND }}
- name: Install
shell: bash -l {0}
run: |
pip install -e . --no-deps
pip install -e ./${{ matrix.FRIEND }} --no-deps
- name: Test
shell: bash -l {0}
run: pytest -v ${{ matrix.FRIEND }}