Skip to content

Commit

Permalink
Add environment.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
rashidrao-pk committed Oct 4, 2024
1 parent ee649d4 commit 4b0f98d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 58 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/environment.yml

This file was deleted.

16 changes: 2 additions & 14 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,14 @@ jobs:
runs-on: ubuntu-latest

steps:
# Step 1: Checkout the repository
- name: Checkout repository
uses: actions/checkout@v2

# Step 2: Set up Miniconda
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.8 # Specify the Python version you need
environment-file: github/workflows/environment.yml # Specify the path to your environment.yml
activate-environment: base
python-version: 3.8

# Step 3: Install additional dependencies
- name: Install dependencies
run: |
conda env update --file github/workflows/environment.yml --name base
conda install pytest # or any other testing framework
# Step 4: Run tests
- name: Run tests
run: |
pytest # Replace with your test command
run: conda env update --file environment.yml --name base
34 changes: 12 additions & 22 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: List files in working directory
run: ls -R

- name: Set up Conda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true

- name: Install dependencies
run: conda env update --file .github/workflows/environment.yml --name base
name: my_conda_environment
channels:
- defaults
dependencies:
- python=3.8
- numpy
- pandas
- scikit-learn
- pytest
- pip
- pip:
- lime_stratified # Add pip packages here

0 comments on commit 4b0f98d

Please sign in to comment.