Skip to content

Adds restarts to exchange heuristic (#30) #85

Adds restarts to exchange heuristic (#30)

Adds restarts to exchange heuristic (#30) #85

Workflow file for this run

name: Validate code
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
validate_code:
name: Validate code
runs-on: ubuntu-latest
if: ${{ github.ref != 'refs/heads/main' }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11.x'
architecture: 'x64'
- name: Install Poetry and dependencies
uses: SneaksAndData/github-actions/[email protected]
with:
pypi_repo_url: ${{ secrets.AZOPS_PYPI_REPO_URL }}
pypi_token_username: ${{ secrets.AZOPS_PAT_USER }}
pypi_token: ${{ secrets.AZOPS_PAT }}
install_extras: "all"
- name: Unit test
run: |
set -e
pypath=$(pwd)
export PYTHONPATH="$pypath:$PYTHONPATH"
poetry run pytest ./tests --cov-config=.coveragerc --doctest-modules --junitxml=junit/test-results.xml --cov=. --cov-report=term-missing:skip-covered | tee pytest-coverage.txt
- name: Publish Code Coverage
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: ./pytest-coverage.txt
junitxml-path: ./junit/test-results.xml