Skip to content

Commit

Permalink
updayted github actions to fix isues running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Acribbs committed Oct 25, 2024
1 parent ccbd109 commit 0cc9e8f
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/cgatapps_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,40 +11,44 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest"]
python-version: ["3.12"]
python-version: ["3.11", "3.12"]

defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v2

- name: Cache conda
uses: actions/cache@v1
uses: actions/cache@v3 # Updated to the latest cache action version
env:
# Increase this value to reset cache if conda/environments/cgat-core.yml has not changed
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key:
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
hashFiles('conda/environments/cgat-apps.yml') }}
- uses: conda-incubator/setup-miniconda@v2
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('conda/environments/cgat-apps.yml') }}

- name: Set up Conda
uses: conda-incubator/setup-miniconda@v2
with:
mamba-version: "*"
mamba-version: "*" # Optional: if you prefer using mamba
python-version: ${{ matrix.python-version }}
miniforge-version: "latest" # Added to ensure Miniforge is installed
channels: conda-forge, bioconda, defaults
channel-priority: true
activate-environment: cgat-a
environment-file: conda/environments/cgat-apps.yml

- name: Show conda
run: |
conda info
conda list
- name: Test
run: |
pip install -e .
pip install nose
nosetests -v tests/test_style.py
nosetests -v tests/test_scripts.py
nosetests -v tests/test_import.py
nosetests -v tests/test_import.py

0 comments on commit 0cc9e8f

Please sign in to comment.