Skip to content

Commit

Permalink
CI: minor updates (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdegeus authored Oct 12, 2023
1 parent d5487b6 commit 9ba7fe4
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:

default-shell:
standard:

strategy:
fail-fast: false
Expand All @@ -17,23 +17,18 @@ jobs:

defaults:
run:
shell: bash -l {0}
shell: bash -e -l {0}

name: ${{ matrix.runs-on }}
runs-on: ${{ matrix.runs-on }}

steps:

- name: Checkout
- name: Clone this library
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Checkout latest release tag
run: |
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
echo "SETUPTOOLS_SCM_PRETEND_VERSION=$LATEST_TAG" >> $GITHUB_ENV
- name: Install SSH server
if: runner.os == 'Linux'
run: |
Expand All @@ -46,12 +41,18 @@ jobs:
chmod 600 "$HOME/.ssh/authorized_keys"
ssh -o "StrictHostKeyChecking accept-new" -v localhost "uname -r"
- name: Set conda environment
uses: mamba-org/provision-with-micromamba@main
- name: Create conda environment
uses: mamba-org/setup-micromamba@main
with:
environment-file: environment.yaml
environment-name: myenv
cache-env: true
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
Expand Down

0 comments on commit 9ba7fe4

Please sign in to comment.