Skip to content

Commit

Permalink
Set up CI tests for component
Browse files Browse the repository at this point in the history
  • Loading branch information
mdpiper committed Nov 30, 2023
1 parent 6f0f008 commit fe51062
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,34 +23,45 @@ jobs:
python-version: [3.11]

steps:
- name: Install NetLogo
run: |
curl https://ccl.northwestern.edu/netlogo/6.1.1/NetLogo-6.1.1-64.tgz --output NetLogo-6.1.1-64.tgz
tar xf NetLogo-6.1.1-64.tgz
mv NetLogo\ 6.1.1 /opt/netlogo-6.1.1
- uses: actions/checkout@v4
with:
submodules: true

- uses: conda-incubator/setup-miniconda@v2
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
channels: conda-forge
channel-priority: true

- name: Show conda installation info
- name: Install requirements
run: |
conda info
conda list
conda install -c conda-forge pymt --file=requirements-build.txt --file=requirements-library.txt
- name: Install requirements
- name: Install bmi-example-pynetlogo dependency
run: |
conda install mamba
mamba install --file=requirements-build.txt --file=requirements-library.txt
mamba list
pushd ./external/bmi-example-pynetlogo
make install
popd
- name: Build and install package
run: |
pip install -e .
- name: Install testing dependencies
run: mamba install --file=requirements-testing.txt

- name: Test
run: |
python -c 'import pymt_pynetlogo'
python -c 'from pymt.models import HeatDiffusion'
- name: Run examples
working-directory: ${{ github.workspace }}/examples
run: |
python heatc_ex.py
python pymt_heatc_ex.py

0 comments on commit fe51062

Please sign in to comment.