Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions .github/workflows/benchmark-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v6
with:
python-version: '3.x'

Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Run benchmarks
run: |
# Run quick benchmarks on all versions to test everything works
asv run HASHFILE:versions.txt --quick
asv run --skip-existing-commits --show-stderr HASHFILE:versions.txt

- name: Generate HTML
run: asv publish
Expand All @@ -60,7 +60,7 @@ jobs:
echo "When this PR is merged, the production workflow will run and deploy to GitHub Pages."

- name: Upload test results as artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: benchmark-test-results
path: .asv/html/
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v6
with:
python-version: '3.x'

Expand Down Expand Up @@ -58,13 +58,13 @@ jobs:
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
uses: actions/upload-pages-artifact@v5
with:
path: '.asv/html'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v5

- name: Summary
run: |
Expand Down
17 changes: 4 additions & 13 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,11 @@ Local Development
Triggering Benchmarking
-----------------------

This repository uses GitHub Actions to automatically benchmark new scikit-bio releases:

1. **Manual Trigger**: Go to Actions → "Benchmark Specific Releases" → "Run workflow"
2. **Add New Version**: Enter the new release version (e.g., ``0.6.4``)
3. **Deploy**: Results are automatically published to GitHub Pages

The workflow will:

- Add the new version to ``versions.txt``
- Run benchmarks for the specified version
- Generate HTML reports
- Deploy to GitHub Pages
- Commit the updated version list
This repository uses GitHub Actions to benchmark new scikit-bio releases. To add one:

1. **Open a PR**: Add the new release version (e.g., ``0.7.3``) to ``versions.txt``.
2. **Test run**: Opening the PR triggers a benchmark run to verify everything works. No results are deployed.
3. **Merge**: Merging the PR runs the full benchmarks and deploys the HTML reports to GitHub Pages.

Configuration
-------------
Expand Down
3 changes: 2 additions & 1 deletion benchmarks/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def _disabled_time_pcoa_biplot(self):
class Composition:
def setup(self):
size = 500
self.mat = np.random.rand(size, size)
n_feats = 50
self.mat = np.random.rand(size, n_feats)
self.df = pd.DataFrame(data=self.mat)
# make a random matrix with some zeros in it
self.mat_z = self.mat * (self.mat > 0.2)
Expand Down