update tests #936
This file contains hidden or 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
name: FuncTests | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: Set up Python 3.10.4 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.10.4 | |
- name: Upgrade pip | |
run: | | |
curl -sS https://bootstrap.pypa.io/get-pip.py -o get-pip.py | |
python3 get-pip.py | |
python3 -m pip install --upgrade pip | |
- name: Cache python | |
uses: actions/cache@v3 | |
with: | |
path: ${{ env.pythonLocation }} | |
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }} | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --upgrade setuptools | |
python3 -m pip install Cython pylint anybadge coverage | |
python3 -m pip install . | |
- name: Running ssshtest | |
run: | | |
TMPDIR=`pwd` bash repo_utils/truvari_ssshtests.sh | |
- name: Uploading coverage | |
uses: actions/upload-artifact@v4 | |
with: | |
name: htmlcov | |
path: test_results/htmlcov | |
- name: Commit README | |
run: | | |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git commit -m "Update coverage score" -a || echo "No changes to commit" | |
- name: Push README | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |