Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
zbmorro committed Mar 21, 2024
1 parent 73b15af commit 9eb2649
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Build and Test Using Conda

on:
push:
# branches: [master, devel]
branches: [master]

workflow_dispatch:


# # schedule:
# # # * is a special character in YAML so you have to quote this string
# # - cron: '*/0 * * * *' # run once a day


jobs:
pyapprox_unit_tests:
name: Setup Pyapprox dependencies with conda
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# quotes needed around two-digit versions
python-version: [3.8]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2
- name: Setup Miniconda with Python ${{ matrix.python-version }} on ${{ matrix.os }}
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: pyapprox-base
python-version: ${{ matrix.python-version }}
# channels: defaults,conda-forge
channels: defaults
environment-file: environment.yml
auto-update-conda: true
# use-only-tar-bz2: true
auto-activate-base: false
- name: Conda list
shell: bash -l {0} # - l {0} is needed to activate created env
run: |
conda list
conda env list
- name: Setup PyApprox
shell: bash -l {0}
run: |
pip install -e .
- name: Test PyApprox
shell: bash -l {0}
run: |
pytest -s --cov-report term --cov=pyapprox
# -s disables capturing stdout so print statements print to screen
# python setup.py test
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ channels:
- conda-forge
dependencies:
- python>3.6
- numpy>=1.20
- numpy>=1.25
- matplotlib
- scipy
- jupyter
Expand Down

0 comments on commit 9eb2649

Please sign in to comment.