Skip to content

Commit

Permalink
Use pip for the warnings test
Browse files Browse the repository at this point in the history
  • Loading branch information
bhazelton committed Jan 9, 2024
1 parent c09dd9a commit 8059066
Showing 1 changed file with 9 additions and 21 deletions.
30 changes: 9 additions & 21 deletions .github/workflows/testsuite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,49 +175,37 @@ jobs:
token: ${{secrets.CODECOV_TOKEN}} #required
files: ./coverage.xml #optional

# Use pip for diversity
warning_test:
env:
ENV_NAME: full_deps
PYTHON: "3.11"
PYTHON: "3.10"
name: Warning Test
runs-on: ubuntu-latest
defaults:
run:
# Adding -l {0} helps ensure conda can be found properly.
shell: bash -l {0}
steps:
- uses: actions/checkout@main
with:
fetch-depth: 0

- name: Setup Minimamba
uses: conda-incubator/setup-miniconda@v2
- name: Setup Python
uses: actions/setup-python@v4
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
python-version: ${{ env.PYTHON }}
environment-file: ci/${{ env.ENV_NAME }}.yaml
activate-environment: ${{ env.ENV_NAME }}

- name: Conda Info
- name: Install
run: pip install -e .[dev]

- name: Environment Info
run: |
conda info -a
conda list
pip list
PYVER=`python -c "import sys; print('{:d}.{:d}'.format(sys.version_info.major, sys.version_info.minor))"`
if [[ $PYVER != ${{ env.PYTHON }} ]]; then
exit 1;
fi
- name: Install
run: |
pip install --no-deps .
- name: Run Tests
run: |
python -m pytest -W error --cov=pyradiosky --cov-config=.coveragerc --cov-report xml:./coverage.xml
- name: check coverage report
run: |
ls
Expand Down

0 comments on commit 8059066

Please sign in to comment.