Skip to content

V021

V021 #65

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Build
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.12"]
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: test
auto-activate-base: false
python-version: ${{ matrix.python-version }}
- name: Install
shell: bash -l {0}
run: |
conda info
conda config --add channels conda-forge
conda install obspy spectrum
pip install stdb
pip install .
# - name: Tests
# shell: bash -l {0}
# run: |
# mkdir empty
# cd empty
# conda install pytest-cov
# pytest -v --cov=orientpy ../orientpy/tests/
# bash <(curl -s https://codecov.io/bash)
# - name: Make docs
# if: matrix.python-version == '3.12'
# shell: bash -l {0}
# run: |
# cd docs
# conda install sphinx
# pip install sphinx_rtd_theme
# make html
# touch _build/html/.nojekyll
# cd ..
# - name: Deploy 🚀
# if: matrix.python-version == '3.12'
# 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