Skip to content

Commit

Permalink
feat: add a ci file to run pytests
Browse files Browse the repository at this point in the history
  • Loading branch information
Psycojoker committed Aug 7, 2024
1 parent 8f0aca2 commit 4cc196a
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test/Coverage with Python

on:
push:
branches:
- main
pull_request:
branches:
- "*"

jobs:
tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- name: Set up Python 3.12
id: setup-python
uses: actions/setup-python@v2
with:
python-version: 3.12

- name: Install needed debian packages
run: sudo apt install libsodium-dev libgmp-dev

- name: Install project
run: pip install -e .

- name: Install pytest and pytest-cov
run: pip install pytest pytest-cov

- name: Run tests
run: pytest

0 comments on commit 4cc196a

Please sign in to comment.