Skip to content

Updates

Updates #25

Workflow file for this run

name: tests
# Controls when the action will run.
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
run_tests:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ['3.10']
# include:
# - os: macos-latest
# python: '3.10'
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- name: Setup conda
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python }}
environment-file: .github/test_conda_env.yml
- name: print conda environment info
run: |
conda info -a
conda list
- name: install package
run: |
pip install -v --no-deps .
- name: run test suite
run: |
mkdir empty; cd empty
pytest -v --cov=telewavesim --pyargs telewavesim
coverage xml -o ../coverage.xml
- name: upload coverage
uses: codecov/codecov-action@v1