Skip to content

Added output flag to example #12

Added output flag to example

Added output flag to example #12

Workflow file for this run

name: build-package
on:
pull_request:
branches:
- main
push:
branches:
- main
schedule:
# Nightly tests run on master by default:
# Scheduled workflows run on the latest commit on the default or base branch.
# (from https://help.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events-schedule)
# Monthly test on building the package
- cron: "0 0 1 * *"
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
defaults:
run:
shell: bash -leo pipefail {0}
jobs:
tests:
runs-on: ${{ matrix.OS }}-latest
name: "tests"
strategy:
fail-fast: false
matrix:
os: ['ubuntu',]
python-version:
- "<3.12"
include:
- os: 'macos'
python-version: "<3.12"
steps:
- uses: actions/checkout@v4
- name: Get current date
id: date
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"
- uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
environment-name: abfe
cache-environment: true
cache-downloads: true
cache-environment-key: environment-${{ steps.date.outputs.date }}
cache-downloads-key: downloads-${{ steps.date.outputs.date }}
create-args: >-
python=${{ matrix.python-version }}
- name: "Install"
run: pip install --no-deps .
- name: "Test CLI abfe"
run: |
cli-abfe -h
- name: "Test CLI abfe-gmx"
run: |
cli-abfe-gmx -h
- name: "Test imports"
run: |
python -Ic "import abfe"