From fc269c86b67111de1e1cdc98f62546f291e9801e Mon Sep 17 00:00:00 2001 From: Pablo Olivares Date: Tue, 19 Mar 2024 23:14:16 +0100 Subject: [PATCH] Updated test workflow advances #2 --- .github/workflows/test_workflow.yaml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test_workflow.yaml b/.github/workflows/test_workflow.yaml index a71cee1..7b943fa 100644 --- a/.github/workflows/test_workflow.yaml +++ b/.github/workflows/test_workflow.yaml @@ -1,4 +1,4 @@ -name: Python Tests +name: Conda Environment Workflow on: push: @@ -7,27 +7,28 @@ on: branches: [ main ] jobs: - test: + build: runs-on: ubuntu-latest - strategy: - matrix: - python-version: [3.11] - steps: - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + - name: Set up Conda + uses: conda-incubator/setup-miniconda@v4 with: - python-version: ${{ matrix.python-version }} + auto-update-conda: true + environment-file: environment.yaml + activate-environment: tda-nn-separability + python-version: 3.11 + conda-channels: conda-forge - - name: Install dependencies + - name: Install Dependencies run: | - python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + conda info + conda list - name: Run tests + shell: bash -l {0} run: | pytest tests/