Skip to content

Commit 008ecc9

Browse files
Create joss_tests.yml
Trying an test for JOSS
1 parent b3068d6 commit 008ecc9

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

github/workflows/joss_tests.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Run PICA JOSS Tests
2+
3+
on:
4+
push:
5+
branches: [ "main", "master" ]
6+
pull_request:
7+
branches: [ "main", "master" ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
# 1. Download your code to the test server
15+
- name: Checkout repository
16+
uses: actions/checkout@v3
17+
18+
# 2. Install Python 3.10 (Stable version for scientific libraries)
19+
- name: Set up Python 3.10
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: "3.10"
23+
24+
# 3. Install your project
25+
- name: Install Dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
# This command reads your pyproject.toml and installs PICA
29+
# The '-e' flag is critical: it installs in 'editable' mode
30+
# so the tests can find your 'Keithley_2400' folders.
31+
pip install -e .
32+
33+
# Install test utilities
34+
pip install pytest
35+
36+
# 4. Run the "Smart" Test Script
37+
- name: Run Dynamic GUI Tests
38+
run: |
39+
# This runs the auto-discovery script that finds and tests all your GUIs
40+
python -m unittest tests/test_auto_discovery.py

0 commit comments

Comments
 (0)