Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Add unit test workflow (#767)
Browse files Browse the repository at this point in the history
  • Loading branch information
thegreyd authored May 2, 2023
1 parent 38bb577 commit 9c3751a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9c3751a

Please sign in to comment.