Verify pip-installability #410
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: 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" |