Skip to content

Commit b37130c

Browse files
committed
Add GHA test
1 parent b9f8ac4 commit b37130c

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.github/workflows/build.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Test viewer
2+
3+
on:
4+
push:
5+
branches: [ main, development, test* ]
6+
pull_request:
7+
branches: [ main, development, test* ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ${{ matrix.runs-on }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
runs-on: [ubuntu-latest, macos-latest ]
17+
python-version: [ "3.10", "3.12" ]
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
27+
28+
- name: Install Python dependencies
29+
run: |
30+
31+
pip install numpy matplotlib ruff
32+
33+
- name: Test WCONViewer
34+
run: |
35+
./test_all.sh
36+
37+
38+
- name: Print info on files
39+
run: |
40+
ls -alt

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/__pycache__
2+
/.DS_Store

0 commit comments

Comments
 (0)