Skip to content

Commit

Permalink
fix(ci): Trigger new release to deploy to pollination
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey authored and Chris Mackey committed Mar 25, 2021
1 parent 89d28f5 commit b141262
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: CI

on: [push, pull_request]
on: [push]

jobs:

Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: CI

on: [pull_request]

jobs:

test:
name: Unit tests
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: install python dependencies
run: |
pip install -r dev-requirements.txt
pip install .
- name: run tests
run: python -m pytest tests/
Empty file added tests/__init__.py
Empty file.
8 changes: 8 additions & 0 deletions tests/validation_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from pollination.annual_daylight.entry import AnnualDaylightEntryPoint
from queenbee.recipe.dag import DAG


def test_annual_daylight():
recipe = AnnualDaylightEntryPoint().queenbee
assert recipe.name == 'annual-daylight-entry-point'
assert isinstance(recipe, DAG)

0 comments on commit b141262

Please sign in to comment.