Skip to content

Commit

Permalink
BUILD: Add unit test checks to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hdelc committed Mar 22, 2023
1 parent 33b4edb commit f148d19
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: Testing

on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
Unit:
runs-on: ubuntu-latest
steps:
# check-out repo
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Setup Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
# install requirements (including dev dependencies)
- name: Install requirements
run: |
python -m pip install --upgrade pip
make deps
# run linters
- name: Run tests
run: |
set -o pipefail
make test

0 comments on commit f148d19

Please sign in to comment.