Skip to content

Commit d5fc14c

Browse files
authored
Merge pull request #86 from rdeits/rd/github-ci
Try turning on github CI
2 parents 63cee7a + 92c52f0 commit d5fc14c

File tree

5 files changed

+41
-33
lines changed

5 files changed

+41
-33
lines changed

.github/workflows/CI.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Python package
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: [3.6, 3.7, 3.8]
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install flake8 pytest pytest-cov
23+
git submodule update --init --recursive
24+
pip install -e .
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
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: Test with pytest
32+
run: |
33+
pytest --cov=./
34+
- name: "Upload coverage to Codecov"
35+
uses: codecov/codecov-action@v1
36+
with:
37+
fail_ci_if_error: true

.travis.yml

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

publishing_notes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
2. Create a new tag:
33

44
git tag -a "v1.2.3"
5+
git push
6+
git push --tags
57

68
3. Upload
79

src/meshcat/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class SetObject:
77
def __init__(self, geometry_or_object, material=None, path=None):
88
if isinstance(geometry_or_object, Object):
99
if material is not None:
10-
raise(ArgumentError("Please supply either an Object OR a Geometry and a Material"))
10+
raise(ValueError("Please supply either an Object OR a Geometry and a Material"))
1111
self.object = geometry_or_object
1212
elif isinstance(geometry_or_object, OrthographicCamera):
1313
self.object = geometry_or_object

utils/zmqrelay.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ async def handle_new_connection(websocket, path):
2121
msg = await my_queue.get()
2222
await websocket.send(msg)
2323
except websockets.ConnectionClosed as e:
24-
queues.remove(queue)
24+
queues.remove(my_queue)
2525

2626
start_server = websockets.serve(handle_new_connection, '127.0.0.1', 8765)
2727
asyncio.get_event_loop().run_until_complete(start_server)

0 commit comments

Comments
 (0)