Skip to content

Verify pip-installability #411

Verify pip-installability

Verify pip-installability #411

name: Verify pip-installability
on:
schedule:
# Run (on default branch only) at 05:00 (hr:mm) UTC -> 12am EST
- cron: "0 5 * * *"
workflow_dispatch:
jobs:
deploy:
name: Verify pip-installability
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Set branch name as env variable
run: |
echo Current branch: ${GITHUB_REF#refs/heads/}
echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
- name: Install only using pip
run:
pip install git+https://github.com/PMEAL/porespy.git@${BRANCH_NAME}
- name: Test the installation
run:
python -c "import porespy"