run conda project run in background #4
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: Test | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- uses: actions/[email protected] | |
- name: Setup Python | |
uses: mamba-org/[email protected] | |
with: | |
environment-name: test | |
create-args: >- | |
python=3.11 | |
conda-project | |
-c conda-forge | |
- name: conda info and list | |
run: | | |
conda info | |
conda list | |
- name: Install conda-project | |
run: conda project install | |
- name: conda info and list for conda project environment | |
run: | | |
conda project run conda info | |
conda project run conda list | |
- name: Run conda-project | |
run: | | |
conda project run > logs.txt 2>&1 & | |
sleep 5 | |
cat logs.txt | |
- name: Check Panel app running | |
run: | | |
curl http://127.0.0.1:5000 |