Skip to content

Commit

Permalink
seperate macos and linux tests
Browse files Browse the repository at this point in the history
  • Loading branch information
farchaab committed Aug 20, 2024
1 parent bc0a348 commit 47fefaf
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests
name: Linux tests

on:
push:
Expand Down Expand Up @@ -31,9 +31,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest]
os: [ubuntu-latest]
python-version: ["3.12"]
architecture: ["x64"]

steps:
- uses: "actions/checkout@v3"
Expand Down
60 changes: 60 additions & 0 deletions .github/workflows/macos-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Macos tests

on:
push:
branches: ["main"]
paths:
- ".github/workflows/unit-tests.yaml"
- "tests/**"
- "assembly_finder/**"
- "setup.py"
pull_request:
branches: ["main"]
paths:
- ".github/workflows/unit-tests.yaml"
- "tests/**"
- "assembly_finder/**"
- "setup.py"

permissions:
contents: read

jobs:
tests:
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}

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

strategy:
fail-fast: false
matrix:
os: [macos-14]
python-version: ["3.12"]

steps:
- uses: "actions/checkout@v4"
with:
fetch-depth: 0

- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
miniforge-version: "latest"
miniforge-variant: Miniforge3
use-mamba: true
mamba-version: "*"
channels: conda-forge,bioconda,defaults
channel-priority: strict
activate-environment: assembly_finder
python-version: ${{ matrix.python-version }}
auto-activate-base: false

- name: "Test and generate coverage report on ${{ matrix.os }} for Python ${{ matrix.python-version }}"
run: |
python -m pip install --upgrade pip
python -m pip install pytest coverage
python -m pip install .
coverage run -m pytest

0 comments on commit 47fefaf

Please sign in to comment.