-
Notifications
You must be signed in to change notification settings - Fork 75
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 #218 from mdshw5/master
Update develop
- Loading branch information
Showing
13 changed files
with
185 additions
and
194 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
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 |
---|---|---|
|
@@ -12,47 +12,76 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
max-parallel: 10 | ||
matrix: | ||
python: [3.7.12, 3.8.12, 3.9.10, 3.10.2] | ||
python-version: ['3.11', '3.10', '3.9', '3.8', '3.7'] | ||
os: [ubuntu-latest, macos-latest] | ||
exclude: | ||
# mac os: exclude all but the last two (available) python releases | ||
- os: macos-latest | ||
python-version: 3.8 | ||
- os: macos-latest | ||
python-version: 3.7 | ||
# mac os: exclude python 3.11 since it's not yet available for runners | ||
- os: macos-latest | ||
python-version: 3.11 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2.3.1 | ||
- name: checkout | ||
uses: actions/checkout@v3.1.0 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
- name: install macOS dependencies | ||
if: ${{ matrix.os == 'macos-latest' }} | ||
run: brew install -q samtools bcftools xz | ||
|
||
- name: setup python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
- name: upgrade pip | ||
run: python3 -m pip install --upgrade pip | ||
|
||
- name: Install python packages | ||
run: pip install -r dev-requirements.txt | ||
- name: pip install development dependencies | ||
run: | | ||
python3 -m pip install cython | ||
python3 -m pip install -r dev-requirements.txt | ||
- name: Install package | ||
run: python setup.py install | ||
- name: install pysam under Linux | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: python3 -m pip install pysam | ||
|
||
- name: install pyfaidx from current branch | ||
run: python3 -m pip install . | ||
|
||
- name: Cache test data | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3.0.11 | ||
with: | ||
path: tests/data | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('tests/data/*') }} | ||
|
||
- name: Download test data | ||
run: python tests/data/download_gene_fasta.py | ||
- name: download test data | ||
run: python3 tests/data/download_gene_fasta.py | ||
|
||
- name: Run tests | ||
- name: run pyfaidx tests | ||
run: pytest --cov=pyfaidx --cov-report=xml tests | ||
|
||
- name: Run acidbio BED tests | ||
- name: run acidbio tests | ||
run: | | ||
git clone https://github.com/mdshw5/acidbio.git | ||
cd acidbio/bed | ||
python3 -m pip install -r requirements.txt | ||
cp config_template.yaml config.yaml | ||
python3 bedrunall.py --tool pyfaidx BED03 ./ | ||
- name: Codecov | ||
uses: codecov/[email protected] | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
continue-on-error: true | ||
with: | ||
fail_ci_if_error: true | ||
files: ./coverage.xml | ||
verbose: true |
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 |
---|---|---|
@@ -1,37 +1,40 @@ | ||
name: Package Builds | ||
on: push | ||
on: | ||
release: | ||
types: [published] | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build-n-publish: | ||
name: Build and publish packages to PyPI and TestPyPI | ||
runs-on: ubuntu-18.04 | ||
name: build and publish packages to PyPI and TestPyPI | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2.3.1 | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
- name: setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install python packages | ||
run: pip install setuptools | ||
|
||
- name: Build package | ||
run: python setup.py sdist | ||
|
||
- name: Publish to test PyPI | ||
uses: pypa/gh-action-pypi-publish@master | ||
- name: build package | ||
run: pipx run build | ||
|
||
- name: publish to test PyPI | ||
if: startsWith(github.ref, 'refs/tags') != true | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.test_pypi_password }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
|
||
- name: Publish to tagged release to PyPI | ||
- name: publish tagged release to PyPI | ||
if: startsWith(github.ref, 'refs/tags') | ||
uses: pypa/gh-action-pypi-publish@master | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.pypi_password }} |
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
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 |
---|---|---|
@@ -1,10 +1,8 @@ | ||
six | ||
pytest | ||
pytest-cov | ||
setuptools | ||
mock | ||
cython | ||
pysam | ||
# pysam | ||
requests | ||
coverage | ||
pyfasta | ||
|
Oops, something went wrong.