Skip to content

Commit

Permalink
Adding GitHub CI
Browse files Browse the repository at this point in the history
  • Loading branch information
john-science committed Dec 30, 2024
1 parent e10fb6f commit d449609
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/unittests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: unit tests

permissions:
contents: read

on:
push:
branches:
- main
pull_request:

jobs:
build:

runs-on: ubuntu-24.04
strategy:
matrix:
python: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Update package index
run: sudo apt-get update
- name: Install PIP Packages
run: |
pip install -e .
pip install pytest
- name: Run tests
run: pytest test/
env:
PYTHONHASHSEED: 0

0 comments on commit d449609

Please sign in to comment.