Skip to content

Commit 8ea55f5

Browse files
authored
Merge pull request #65 from lbr-stack/dev_ci_unittests
thanks for the PR! Yes, the unit tests need to be re-written for that one to function. This isn't a mistake on your end. Since there is currently no one using this code base, I'll go ahead, merge, and fix the actual tests moving forward.
2 parents 8851342 + 7277226 commit 8ea55f5

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Unit tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
python-version: ["3.10", "3.11", "3.12"]
12+
fail-fast: false
13+
14+
steps:
15+
# Check out the repository.
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
19+
# Set up the specified Python version.
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
# - name: cache
26+
# uses: actions/cache@v4
27+
# with:
28+
# path: .
29+
# key: test_env_${{ matrix.python-version }}
30+
31+
# ToDo: cuda dedicated needed? or enough via torch?
32+
# - uses: Jimver/cuda-toolkit@v0.2.21
33+
# id: cuda-toolkit
34+
# with:
35+
# cuda: '12.1.0'
36+
# use-github-cache: false
37+
# use-local-cache: false
38+
39+
# Upgrade pip and install your package (and its dependencies from pyproject.toml).
40+
- name: Install package and dependencies
41+
run: |
42+
python -m pip install --upgrade pip
43+
# This command will build and install your package.
44+
pip install .
45+
46+
# Run tests with pytest.
47+
- name: Run tests
48+
run: |
49+
pytest test

0 commit comments

Comments
 (0)