Skip to content

Commit

Permalink
fix(CI): Update CI to add unittests to Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
ed-p-may committed Sep 12, 2022
1 parent cc2a797 commit f52d227
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,33 @@ on: [push, pull_request]
permissions: write-all

jobs:
test:
name: Unit tests

runs-on: macos-latest
strategy:
matrix:
python-version: [3.7]

steps:
- uses: actions/checkout@v2
- name: set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: install python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r dev-requirements.txt
- name: run tests
run: python -m pytest tests/

deploy:
name: Deploy to GitHub and PyPI
runs-on: macos-latest
needs: test
if: github.ref == 'refs/heads/main' && github.repository_owner == 'ph-tools'
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit f52d227

Please sign in to comment.