-
Notifications
You must be signed in to change notification settings - Fork 70
52 lines (43 loc) · 1.29 KB
/
test_pkg.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
43
44
45
46
47
48
49
50
51
52
name: Test Package
on: [ push ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
env:
SAMNTDIR: ${{ github.workspace }}/SAM
name: ${{ matrix.os }} ${{ matrix.python-version }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: Checkout SAM
run: |
git config --global url.https://github.com/.insteadOf git://github.com/
git clone https://github.com/NREL/SAM.git
ls
pwd
ls ${{ env.SAMNTDIR }}
ls ${{ env.SAMNTDIR }}/api/api_autogen/library/defaults
- uses: actions/checkout@v3
- name: Setup conda
uses: s-weigand/setup-conda@v1
with:
update-conda: true
python-version: ${{ matrix.python-version }}
conda-channels: anaconda, conda-forge
- run: conda --version
- run: which python
- name: Install NREL-PySAM
run: |
pip install -r requirements.txt
pip install -r tests/requirements.txt
conda install -c nrel nrel-pysam
- name: Unit tests
run: |
ls
pwd
pytest tests