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/