Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update CI test file #150

Open
wants to merge 10 commits into
base: dev
Choose a base branch
from
Open
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
48 changes: 31 additions & 17 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:

static-code-analysis:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
defaults:
run:
shell: bash -l {0}
Expand All @@ -21,15 +21,18 @@ jobs:
uses: actions/checkout@v4

- name: Setup Conda/Mamba
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
mamba-version: "*"
mamba-version: "2"
channel-priority: true
auto-update-conda: false
activate-environment: mirflowz
environment-file: environment.yml
conda-remove-defaults: true
auto-activate-base: false

- name: Update mirflowz env with dev packages
run: mamba env update -n mirflowz -f environment.dev.yml
run: mamba env update -n mirflowz -f environment.dev.yml

- name: display environment info
run: |
Expand All @@ -53,7 +56,7 @@ jobs:
run: black --check --verbose --line-length=79 ./*.py

snakemake-format-graph-test:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
defaults:
run:
shell: bash -l {0}
Expand All @@ -64,15 +67,18 @@ jobs:
uses: actions/checkout@v4

- name: setup Conda/Mamba
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
mamba-version: "*"
mamba-version: "2"
channel-priority: true
auto-update-conda: false
activate-environment: mirflowz
environment-file: environment.yml
conda-remove-defaults: true
auto-activate-base: false

- name: update mirflowz env with dev packages
run: mamba env update -n mirflowz -f environment.dev.yml
run: mamba env update -n mirflowz -f environment.dev.yml

- name: display environment info
run: |
Expand All @@ -90,7 +96,7 @@ jobs:


snakemake-integration-test:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
defaults:
run:
shell: bash -l {0}
Expand All @@ -101,15 +107,18 @@ jobs:
uses: actions/checkout@v4

- name: setup Conda/Mamba
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
mamba-version: "*"
mamba-version: "2"
activate-environment: mirflowz
channel-priority: true
auto-update-conda: false
environment-file: environment.yml
conda-remove-defaults: true
auto-activate-base: false

- name: update mirflowz env with root packages
run: mamba env update -n mirflowz -f environment.root.yml
run: mamba env update -n mirflowz -f environment.root.yml

- name: display environment info
run: |
Expand All @@ -120,11 +129,13 @@ jobs:
run: bash test/test_workflow_local_with_singularity.sh

- name: run local test with Conda
run: bash test/test_workflow_local_with_conda.sh
run: |
conda config --set channel_priority strict
bash test/test_workflow_local_with_conda.sh


unit-testing:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
defaults:
run:
shell: bash -l {0}
Expand All @@ -135,15 +146,18 @@ jobs:
uses: actions/checkout@v4

- name: setup Conda/Mamba
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
mamba-version: "*"
mamba-version: "2"
channel-priority: true
auto-update-conda: false
activate-environment: mirflowz
environment-file: environment.yml
conda-remove-defaults: true
auto-activate-base: false

- name: update mirflowz env with dev packages
run: mamba env update -n mirflowz -f environment.dev.yml
run: mamba env update -n mirflowz -f environment.dev.yml

- name: display environment info
run: |
Expand Down
Loading