Adding shelephant update --sync-search
#488
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
standard: | |
strategy: | |
fail-fast: false | |
matrix: | |
runs-on: [ubuntu-latest, macos-latest, windows-latest] | |
defaults: | |
run: | |
shell: bash -e -l {0} | |
name: ${{ matrix.runs-on }} | |
runs-on: ${{ matrix.runs-on }} | |
steps: | |
- name: Clone this library | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install SSH server | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get install openssh-server | |
ssh-keygen -t rsa -q -f "$HOME/.ssh/id_rsa" -N "" | |
cat "$HOME/.ssh/id_rsa.pub" >> "$HOME/.ssh/authorized_keys" | |
chmod g-w "$HOME" | |
chmod o-w "$HOME" | |
chmod 700 "$HOME/.ssh" | |
chmod 600 "$HOME/.ssh/authorized_keys" | |
ssh -o "StrictHostKeyChecking accept-new" -v localhost "uname -r" | |
- name: Create conda environment | |
uses: mamba-org/setup-micromamba@main | |
with: | |
environment-file: environment.yaml | |
environment-name: myenv | |
init-shell: bash | |
cache-downloads: true | |
- name: Export version of this library | |
run: | | |
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`) | |
echo "SETUPTOOLS_SCM_PRETEND_VERSION=$LATEST_TAG" >> $GITHUB_ENV | |
- name: Install library | |
run: python -m pip install . -v --no-build-isolation --no-deps | |
- name: Run tests | |
run: python -m unittest discover tests -v | |
- name: Build docs | |
working-directory: docs | |
run: make html |