-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (36 loc) · 1.2 KB
/
test_pip_version.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Tests Python|ubuntu grid
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest] #, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] #, "3.13"] # Testing on Python 3.8 to 3.13
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
# Install LAPACK for Linux
- name: Install LAPACK (Linux only)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y liblapack-dev
# Set up Python based on the matrix version
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install numpy==1.26.0
pip install flake8 pytest pre-commit
pip install circe-py
# Run tests and collect coverage
- name: Run tests
run: |
python -m pip install pytest # Install pytest or any other test framework
python -m pytest ../
working-directory: ./tests