Skip to content

fix NaN and renamed function #105

fix NaN and renamed function

fix NaN and renamed function #105

name: Build and Test
on:
push:
paths:
- 'scFates/**'
- '.github/workflows/load_test_upload.yml'
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up pixi
uses: prefix-dev/setup-pixi@v0.8.1
with:
pixi-version: latest
cache: false
- name: Test with pytest
run: |
pixi run -e test test-cov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
files: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
pypi_upload:
if: |
contains(github.event.head_commit.message, 'pypi test') ||
startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
permissions:
id-token: write
needs: build_and_test
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Setup pip
run: |
python -m pip install --upgrade pip
python -m pip install build
- name: Build wheel
run: |
python -m build
- name: Publish package to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
verbose: true
if: contains(github.event.head_commit.message, 'pypi test')
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: startsWith(github.ref, 'refs/tags/v')