Skip to content

Commit 452c5c6

Browse files
authored
Merge pull request #36 from Imageomics/automate-tests
Add automated testing config
2 parents e6e46ee + 2b4c0ac commit 452c5c6

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/run-tests.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Python package
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Set up Python
13+
uses: actions/setup-python@v5
14+
with:
15+
python-version: '3.11'
16+
cache: 'pip'
17+
- uses: actions/cache@v4
18+
with:
19+
path: ~/.cache/huggingface
20+
key: ${{ runner.os }}-bioclip-files
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install .
25+
- name: Run tests
26+
run: |
27+
python -m unittest

0 commit comments

Comments
 (0)