-
Notifications
You must be signed in to change notification settings - Fork 27
38 lines (35 loc) · 1009 Bytes
/
test-pumapy.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
name: ⚙️ Test pumapy
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest] # macos-latest, windows-latest,
steps:
- uses: actions/checkout@v3
- name: Set up Conda
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get install libgl1 -y
conda create -y --name puma -c conda-forge puma gcc pytest scipy=1.11
conda init bash
source ~/.bashrc
conda activate puma
python -m pip install --upgrade pip
python -m pip install -e .
python -c "import pumapy"
- name: Test with pytest
working-directory: ./python/test
run: |
conda init bash
source ~/.bashrc
conda activate puma
pytest