Skip to content

Commit 051fb11

Browse files
authored
Merge pull request #56 from austinorr/rc-0.2.0
Rc 0.2.0
2 parents 8bdc5cb + ec75d0a commit 051fb11

32 files changed

Lines changed: 253 additions & 412 deletions

β€Ž.coveragercβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
[run]
33
source = cloudside
44
branch = True
5-
include = cloudside/*.py
65
omit =
76
cloudside/tests/*
87

β€Ž.editorconfigβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
root = true
44

55
[*]
6+
insert_final_newline = true
7+
8+
[*.py]
69
indent_style = space
710
indent_size = 4
811
trim_trailing_whitespace = true
912
insert_final_newline = true
1013
charset = utf-8
11-
end_of_line = lf
1214

1315
[*.bat]
1416
indent_style = tab

β€Ž.github/workflows/black.ymlβ€Ž

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ jobs:
66
black:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v1
10-
- name: Black Code Formatter
11-
uses: lgeiger/black-action@v1.0.1
12-
with:
13-
args: ". --check"
9+
- uses: actions/checkout@v1
10+
- name: Black Code Formatter
11+
uses: lgeiger/black-action@v1.0.1
12+
with:
13+
args: ". --check"

β€Ž.github/workflows/check-test-coverage.ymlβ€Ž

Lines changed: 0 additions & 32 deletions
This file was deleted.
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Lint, Test, and Cover
5+
6+
on:
7+
push:
8+
branches: [master]
9+
pull_request:
10+
branches: [master]
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up Python
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: 3.9
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install .[dev]
25+
- name: Lint with flake8
26+
run: |
27+
# stop the build if there are Python syntax errors or undefined names
28+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude .git,docs/*
29+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
30+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
31+
- name: Blacken
32+
run: black . --check
33+
34+
test-install:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/checkout@v2
38+
- name: Set up Python
39+
uses: actions/setup-python@v2
40+
with:
41+
python-version: 3.9
42+
- name: Install Cloudside
43+
run: |
44+
python -m pip install --upgrade pip
45+
pip install .
46+
- name: Check basic functionality
47+
run: |
48+
cloudside get-asos KPDX 2020-01-01 2020-02-01 me@mydomain.com
49+
50+
test-python:
51+
runs-on: ubuntu-latest
52+
strategy:
53+
matrix:
54+
python-version: ["3.8", "3.9", "3.10"]
55+
steps:
56+
- uses: actions/checkout@v2
57+
- name: Set up Python ${{ matrix.python-version }}
58+
uses: actions/setup-python@v2
59+
with:
60+
python-version: ${{ matrix.python-version }}
61+
- name: Install dependencies
62+
run: |
63+
python -m pip install --upgrade pip
64+
pip install .[dev]
65+
- name: Test with pytest
66+
run: |
67+
pytest -v
68+
69+
test-python-mpl:
70+
runs-on: ubuntu-latest
71+
steps:
72+
- uses: actions/checkout@v2
73+
- name: Set up Python
74+
uses: actions/setup-python@v2
75+
with:
76+
python-version: 3.9
77+
- name: Install dependencies
78+
run: |
79+
python -m pip install --upgrade pip
80+
pip install .[dev]
81+
- name: Test with pytest and check images
82+
run: |
83+
pytest --mpl
84+
85+
coverage:
86+
runs-on: ubuntu-latest
87+
steps:
88+
- uses: actions/checkout@v2
89+
- name: Setup Python
90+
uses: actions/setup-python@v2
91+
with:
92+
python-version: 3.9
93+
- name: Generate coverage report
94+
run: |
95+
python -m pip install --upgrade pip
96+
pip install .[dev]
97+
coverage run -m pytest --doctest-modules --cov-report=xml
98+
- name: Upload coverage to Codecov
99+
uses: codecov/codecov-action@v1
100+
with:
101+
flags: unittests
102+
name: codecov-umbrella
103+
fail_ci_if_error: true
104+
path_to_write_report: ./codecov_report.gz

β€Ž.github/workflows/python-publish.ymlβ€Ž

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,25 @@ name: Upload Python Package to PyPI
55

66
on:
77
release:
8-
types: [created]
8+
types: [published]
99

1010
jobs:
1111
deploy:
12-
1312
runs-on: ubuntu-latest
14-
1513
steps:
16-
- uses: actions/checkout@v2
17-
- name: Set up Python
18-
uses: actions/setup-python@v2
19-
with:
20-
python-version: '3.x'
21-
- name: Install dependencies
22-
run: |
23-
python -m pip install --upgrade pip
24-
pip install setuptools wheel twine
25-
- name: Build and publish
26-
env:
27-
TWINE_USERNAME: ${{ secrets.PMH_PYPI_USER }}
28-
TWINE_PASSWORD: ${{ secrets.PMH_PYPI_PASS }}
29-
run: |
30-
python setup.py sdist bdist_wheel
31-
twine upload dist/*
14+
- uses: actions/checkout@v2
15+
- name: Set up Python
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: "3.x"
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install setuptools wheel twine
23+
- name: Build and publish
24+
env:
25+
TWINE_USERNAME: ${{ secrets.PMH_PYPI_USER }}
26+
TWINE_PASSWORD: ${{ secrets.PMH_PYPI_PASS }}
27+
run: |
28+
python setup.py sdist bdist_wheel
29+
twine upload dist/*

β€Ž.github/workflows/python-runlinter.ymlβ€Ž

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

β€Ž.github/workflows/python-runtests-basic.ymlβ€Ž

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

β€Ž.github/workflows/python-runtests-img-comp.ymlβ€Ž

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

β€Ž.travis.ymlβ€Ž

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

0 commit comments

Comments
Β (0)