diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index e56106d..0849a65 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -8,8 +8,24 @@ on: types: [created] jobs: - deploy: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Install dependencies + run: | + pip install -r dev-requirements.txt + - name: Test with pytest + run: | + pytest + + deploy: + needs: build runs-on: ubuntu-latest steps: diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 0da76f9..c2ea678 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -7,14 +7,17 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Set up Python 3.7 - uses: actions/setup-python@v1 + uses: actions/setup-python@v2 with: - python-version: 3.7 + python-version: '3.7' - name: Install dependencies run: | pip install -r dev-requirements.txt + - name: Typechecking + run: | + mypy zeropdk - name: Test with pytest run: | - pytest \ No newline at end of file + pytest -s \ No newline at end of file diff --git a/dev-requirements.txt b/dev-requirements.txt index e6dfdf1..319ffe1 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -3,3 +3,4 @@ scipy pytest pytest-cov klayout +mypy \ No newline at end of file