v2.1.0 #78
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: Self Test | |
on: | |
pull_request: | |
push: | |
branches: [main, test-me-*] | |
jobs: | |
self-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# Run local action | |
- name: Test action-setup-venv | |
id: venv | |
uses: ./ | |
with: | |
python-version: 3.8.13 | |
install-cmd: pip install -r test/testdata/requirements.txt | |
# Print debug vars | |
- name: Print variables for debugging | |
run: | | |
echo "VIRTUAL_ENV: ${VIRTUAL_ENV}" | |
echo "PATH: ${PATH}" | |
echo "Cache Hit: ${{ steps.venv.outputs.cache-hit }}" | |
ls -la ${VIRTUAL_ENV}/lib/*/site-packages/ | |
# Test the venv and install worked | |
- name: Ensure environment works | |
run: python3 ./test/testdata/demo.py | |
no-install-self-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# Run local action | |
- name: Test action-setup-venv | |
id: venv | |
uses: ./ | |
with: | |
python-version: 3.8.13 | |
# Test the venv and external install work | |
- name: Pip install | |
if: steps.venv.outputs.cache-hit != 'true' | |
run: pip install -r test/testdata/requirements.txt | |
- name: Ensure environment works | |
run: python3 ./test/testdata/demo.py |