Skip to content

fixing deploy workflow 5 #23

fixing deploy workflow 5

fixing deploy workflow 5 #23

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:
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest"]
python-version: ["3.10"]
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 pandas pytest
pip install stdb
pip install geographiclib
pip install -e .
conda list
- name: Tests
shell: bash -l {0}
run: |
mkdir empty
cd empty
conda install pytest
pytest ../orientpy/tests/
# 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.10'
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.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