diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index af88754..babb3bf 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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