Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -50,7 +50,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -64,4 +64,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
55 changes: 27 additions & 28 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ jobs:
shell: bash -el {0}
strategy:
matrix:
# python-version: [ "3.8", "3.9" ]
python-version: [ "3.9" ]
python-version: [ "3.9", "3.10" ]
# os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest]
steps:
Expand All @@ -22,15 +21,19 @@ jobs:
export DEBIAN_FRONTEND=noninteractive
sudo apt update
sudo apt install -y build-essential zlib1g-dev zlib1g
- uses: actions/checkout@v2
- uses: actions/cache@v2
- uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v4
if: startsWith(runner.os, 'Linux')
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- uses: actions/cache@v2
- uses: actions/cache@v4
if: startsWith(runner.os, 'macOS')
with:
path: ~/Library/Caches/pip
Expand All @@ -39,44 +42,40 @@ jobs:
${{ runner.os }}-pip-
- name: Cache conda
id: cache-miniconda
uses: actions/cache@v2
uses: actions/cache@v4
env:
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key:
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('./environment.yml') }}
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v2
name: setup-Mambaforge
- uses: mamba-org/setup-micromamba@v2
name: setup-Micromamba
with:
python-version: ${{ matrix.python-version }}
miniforge-variant: Mambaforge
miniforge-version: 4.9.2-4
# mamba-version: "*"
# channels: conda-forge, defaults
channels: conda-forge, bioconda, defaults, anaconda
channel-priority: true
activate-environment: "mikado2"
environment-file: ./environment.yml
use-mamba: true
# use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
- name: Verify conda environment
environment-name: mikado2
cache-environment: true
condarc: |
channels:
- conda-forge
- bioconda
channel_priority: flexible
channel_alias: https://repo.prefix.dev
- name: Verify micromamba environment
run: |
conda info --envs
conda env list
conda activate mikado2
conda list
micromamba info
micromamba activate mikado2
micromamba list
- name: Install dependencies
run: |
conda activate mikado2
micromamba activate mikado2
python --version
gcc --version
pip --version
pip install numpy==1.23.3 cython==0.29.32 pytest-cov
pip install -r requirements.txt
python -c "import pysam; print(pysam.__version__)"
pip install Cython pytest-cov
python setup.py develop
pip install --no-deps --editable .
- name: Test light
run: |
pytest -m slow Mikado/tests/test_light.py::LightTest::test_subprocess_multi_empty_orfs
Expand All @@ -90,7 +89,7 @@ jobs:
pytest -m 'not triage';
- name: Upload coverage to Codecov
if: startsWith(runner.os, 'Linux')
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
# - name: Test daijin
# if: startsWith(runner.os, 'Linux')
# run: |
Expand Down
Loading
Loading