File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments