Skip to content

Commit f6b25a7

Browse files
committed
feat: Add CI testing
1 parent f7153f1 commit f6b25a7

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.github/workflows/test.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+
name: Test Nada Algebra
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
pull_request:
10+
branches: [ "*" ]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
python-version: ["3.10", "3.11", "3.12"]
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Install Nillion SDK
23+
run: |
24+
echo "$HOME/.nilup/bin/" >> $GITHUB_PATH
25+
curl https://nilup.nilogy.xyz/install.sh | bash
26+
- name: Setup Nillion SDK
27+
run: |
28+
nilup init
29+
nilup install latest
30+
nilup use latest
31+
- name: Set up Python ${{ matrix.python-version }}
32+
uses: actions/setup-python@v3
33+
with:
34+
python-version: ${{ matrix.python-version }}
35+
- name: Install dependencies
36+
run: |
37+
python -m pip install --upgrade pip
38+
pip install poetry
39+
poetry install --with dev
40+
- name: Run tests
41+
run: poetry run pytest

examples/README.md

Whitespace-only changes.

0 commit comments

Comments
 (0)