From 9c3751a4578fb01660c3107bd41fb5174cdfcdbc Mon Sep 17 00:00:00 2001 From: Siddharth Sharma Date: Tue, 2 May 2023 10:35:07 -0400 Subject: [PATCH] Add unit test workflow (#767) --- .github/workflows/tests.yaml | 22 ++++++++++++++++++++++ Makefile | 1 + 2 files changed, 23 insertions(+) create mode 100644 .github/workflows/tests.yaml diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 000000000..475a1f8c0 --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,22 @@ +name: Unit tests + +on: + pull_request: + branches: [ master ] + +jobs: + test: + runs-on: ubuntu-latest + container: fedora:37 + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.8 + uses: actions/setup-python@v4 + with: + python-version: '3.8' + - name: Install packages + run: dnf install -y gcc krb5-devel + - name: Create venv and install dependencies + run: make venv + - name: Run tests + run: make test diff --git a/Makefile b/Makefile index 51e35baa1..e3d2f3cd7 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ install: venv: python3.8 -m venv venv + ./venv/bin/pip install --upgrade pip ./venv/bin/pip install -r requirements-dev.txt -r requirements.txt # source venv/bin/activate