-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #576 from macs3-project/feat/macs3/hmmratac
MACS3 b3 update `hmmratac` and `Cython` issue
- Loading branch information
Showing
37 changed files
with
203,035 additions
and
199,879 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a single version of Python | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: MACS3 CI MacOS 12 | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-12 | ||
name: Build on MacOS 12 with Python 3.11 | ||
steps: | ||
- name: Checkout MACS | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: 'true' | ||
- name: Cache pip | ||
uses: actions/cache@v3 | ||
with: | ||
# This path is specific to Ubuntu | ||
path: ~/.cache/pip | ||
# Look to see if there is a cache hit for the corresponding requirements file | ||
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
${{ runner.os }}- | ||
- name: Setup venv | ||
run: | | ||
# create venv | ||
python3 -m venv macs3venv | ||
- name: Install dependencies | ||
run: | | ||
# make sure pip is the lastest | ||
source macs3venv/bin/activate | ||
python3 -m pip install --upgrade pip | ||
pip3 install pytest | ||
if [ -f requirements.txt ]; then pip3 install --upgrade -r requirements.txt; fi | ||
- name: Install MACS | ||
run: | | ||
# we use pip install instead of old fashion setup.py install | ||
source macs3venv/bin/activate | ||
pip install . | ||
- name: Test with pytest | ||
run: | | ||
source macs3venv/bin/activate | ||
pytest --runxfail && cd test && ./cmdlinetest-nohmmratac macs3 | ||
- name: Build sdist | ||
run: | | ||
source macs3venv/bin/activate | ||
python setup.py sdist | ||
- name: Archive sdist | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: sdist file | ||
path: | | ||
dist/*.tar.gz | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.