From aebf20c94f6948b744186852448278dad093646d Mon Sep 17 00:00:00 2001 From: TehmoorG Date: Thu, 29 Aug 2024 23:43:07 +0100 Subject: [PATCH] fixed actions --- .github/workflows/ci.yml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 88d9be1..9968fd0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,26 +18,18 @@ jobs: - name: Check out the repository uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 + - name: Set up Conda + uses: conda-incubator/setup-miniconda@v2 with: - python-version: '3.11' - - - name: Install dependencies - run: | - python -m venv venv - source venv/bin/activate - pip install --upgrade pip - pip install -r requirements.txt - pip install flake8 pytest - pip install -e . + python-version: 3.11 + environment-file: environment.yml + activate-environment: drone-env # Replace with your environment name + auto-activate-base: false - name: Run Tests run: | - source venv/bin/activate pytest tests/ - name: Run Flake8 run: | - source venv/bin/activate flake8 .