diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4b89d02..4d37ef8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -81,6 +81,7 @@ jobs: with: init-shell: >- cmd.exe + powershell environment-file: .github/ci_env.yml - name: Create project with cookiecutter @@ -89,31 +90,31 @@ jobs: cookiecutter . --no-input -f - name: Create and activate env - shell: cmd /C CALL {0} + shell: micromamba-shell {0} run: | - micromamba create -f xeus-mylang\environment-dev.yml -y --name xeus_cookiecutter_test_env + micrommamba create -f xeus-mylang\environment-dev.yml -y --name xeus_cookiecutter_test_env - name: Configure cmake - shell: cmd /C CALL {0} + shell: micromamba-shell {0} run: | - micromamba activate xeus_cookiecutter_test_env + micrommamba activate xeus_cookiecutter_test_env cd xeus-mylang mkdir -p bld cd bld cmake .. -DCMAKE_BUILD_TYPE=Release -DXEUS_BUILD_TESTS=ON -DDEPENDENCY_SEARCH_PREFIX="%CONDA_PREFIX%\Library" -DCMAKE_PREFIX_PATH="%CONDA_PREFIX%\Library" -DCMAKE_INSTALL_PREFIX="%CONDA_PREFIX%" - name: Build and install - shell: cmd /C CALL {0} + shell: micromamba-shell {0} run: | - micromamba activate xeus_cookiecutter_test_env + micrommamba activate xeus_cookiecutter_test_env cd xeus-mylang/bld set CL=/MP nmake install - name: Test - shell: cmd /C CALL {0} + shell: micromamba-shell {0} run: | - micromamba activate xeus_cookiecutter_test_env + micrommamba activate xeus_cookiecutter_test_env cd xeus-mylang/test pytest . --reruns 5