Skip to content

Commit 1593418

Browse files
author
scholi
committed
add draft for test workflow
1 parent d78b46e commit 1593418

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Tests (pytest)
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- ready_for_review
8+
- reopened
9+
- synchronize
10+
paths:
11+
- "**.csv"
12+
- "**.npy"
13+
- "**.out"
14+
- "**.pkl"
15+
- "**.png"
16+
- "**.py"
17+
- "**.toml"
18+
- "**.yaml"
19+
20+
concurrency:
21+
group: ${{ github.workflow }}-${{ github.ref }}
22+
cancel-in-progress: true
23+
24+
jobs:
25+
build:
26+
name: Ex1 (${{ matrix.python-version }}, ${{ matrix.os }})
27+
runs-on: ${{ matrix.os }}
28+
strategy:
29+
matrix:
30+
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
31+
python-version: ["3.10", "3.11", "3.12"]
32+
steps:
33+
- uses: actions/checkout@v4
34+
- name: Set up Python
35+
uses: actions/setup-python@v5
36+
with:
37+
python-version: ${{ matrix.python-version }}
38+
- name: Upgrade pip and install test dependencies
39+
run: |
40+
pip install --upgrade virtualenv
41+
pip install --upgrade pip setuptools
42+
pip show pip setuptools
43+
virtualenv --upgrade-embed-wheels
44+
pip install -e .[tests]
45+
- name: Test with pytest
46+
run: |
47+
pytest

0 commit comments

Comments
 (0)