Skip to content

Updates

Updates #27

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
- name: Make docs
if: matrix.python == '3.10'
shell: bash -l {0}
run: |
cd docs
pip install sphinx
pip install sphinx_rtd_theme
make html
touch _build/html/.nojekyll
cd ..
- name: Deploy 🚀
if: matrix.python == '3.10'
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/_build/html # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch