Skip to content

Commit

Permalink
Fix Linux CI, Remove Mac For Now
Browse files Browse the repository at this point in the history
  • Loading branch information
croots committed May 14, 2024
1 parent 9cbb176 commit d9a779f
Showing 1 changed file with 34 additions and 40 deletions.
74 changes: 34 additions & 40 deletions .github/workflows/package_and_test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Build and Test

on:
workflow_dispatch:
push:
Expand All @@ -8,44 +7,39 @@ on:
- cron: '0 0 1 * *'

jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
steps:
- uses: actions/checkout@v4
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
conda env update --file environment.yml --name base
- name: Build and Install OSTIR
run: |
python3 setup.py sdist bdist_wheel
python3 -m pip install ./
- name: Test with unittest
run: |
python -m unittest
build-mac:
runs-on: macos-latest
create-env:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}

strategy:
max-parallel: 5
fail-fast: false
matrix:
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v4
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
sudo chown -R $UID $CONDA
conda env update --file environment.yml --name base
- name: Build and Install OSTIR
run: |
python3 setup.py sdist bdist_wheel
python3 -m pip install ./
- name: Test with unittest
run: |
python -m unittest
- name: checkout repository
uses: actions/checkout@v3

- name: create environment with conda
uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
channels: conda-forge,bioconda,defaults
auto-activate-base: false
activate-environment: cryptkeeper
environment-file: environment.yml

- name: check solution
run: |
conda env export
- name: install ostir
run: |
pip install ./
- name: test ostir
run: |
which ostir
python -m unittest

0 comments on commit d9a779f

Please sign in to comment.