Skip to content

Commit 8e45cf5

Browse files
authored
More CI updates (#147)
* disable doc build as github action RTD builds should be enabled for PRs. * update setup-miniconda * bump tested python versions * add pip packaging action
1 parent 363cd66 commit 8e45cf5

File tree

8 files changed

+43
-17
lines changed

8 files changed

+43
-17
lines changed
File renamed without changes.

.github/workflows/pypipublish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Upload Python Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/[email protected]
12+
- name: Set up Python
13+
uses: actions/[email protected]
14+
with:
15+
python-version: "3.x"
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
python -m pip install setuptools wheel twine
20+
- name: Build and publish
21+
env:
22+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
23+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
24+
run: |
25+
python setup.py sdist bdist_wheel
26+
twine upload dist/*

.github/workflows/test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
cfg:
19-
- {os: ubuntu-latest, env-name: py36}
20-
- {os: ubuntu-latest, env-name: py37, codecov: true}
21-
- {os: ubuntu-latest, env-name: py38}
22-
- {os: macos-latest, env-name: py37}
23-
- {os: windows-latest, env-name: py37}
24-
- {os: ubuntu-latest, env-name: py37-xarray-dev, allow-failure: true}
25-
- {os: ubuntu-latest, env-name: py37-attrs-dev, allow-failure: true}
19+
- {os: ubuntu-latest, env-name: py37}
20+
- {os: ubuntu-latest, env-name: py38, codecov: true}
21+
- {os: ubuntu-latest, env-name: py39}
22+
- {os: macos-latest, env-name: py38}
23+
- {os: windows-latest, env-name: py38}
24+
- {os: ubuntu-latest, env-name: py38-xarray-dev, allow-failure: true}
25+
- {os: ubuntu-latest, env-name: py38-attrs-dev, allow-failure: true}
2626
steps:
2727
- name: Checkout
2828
uses: actions/checkout@v2
2929
- name: Install miniconda
30-
uses: goanpeca/setup-miniconda@v1
30+
uses: conda-incubator/setup-miniconda@v1
3131
with:
3232
auto-update-conda: true
3333
activate-environment: test_env_${{ matrix.cfg.env-name }}

ci/requirements/py37.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,4 @@ dependencies:
1212
- graphviz
1313
- python-graphviz
1414
- ipython
15-
- codecov
1615
- zarr
17-
- tqdm

ci/requirements/py37-attrs-dev.yml renamed to ci/requirements/py38-attrs-dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: test_env_py37-attrs-dev
1+
name: test_env_py38-attrs-dev
22
channels:
33
- conda-forge
44
dependencies:
5-
- python=3.7
5+
- python=3.8
66
- pytest
77
- pytest-cov
88
- numpy

ci/requirements/py37-xarray-dev.yml renamed to ci/requirements/py38-xarray-dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: test_env_py37-xarray-dev
1+
name: test_env_py38-xarray-dev
22
channels:
33
- conda-forge
44
dependencies:
55
- attrs>=19.2.0
6-
- python=3.7
6+
- python=3.8
77
- pytest
88
- pytest-cov
99
- numpy

ci/requirements/py38.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@ dependencies:
1111
- dask
1212
- graphviz
1313
- python-graphviz
14+
- ipython
15+
- codecov
1416
- zarr
17+
- tqdm
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
name: test_env_py36
1+
name: test_env_py39
22
channels:
33
- conda-forge
44
dependencies:
55
- attrs>=19.2.0
6-
- python=3.6
6+
- python=3.9
77
- pytest
88
- pytest-cov
99
- numpy
1010
- xarray
1111
- dask
1212
- graphviz
1313
- python-graphviz
14-
- ipython
1514
- zarr

0 commit comments

Comments
 (0)