Skip to content

docs: Point Stock.Indicators links at facioquo (#457) #208

docs: Point Stock.Indicators links at facioquo (#457)

docs: Point Stock.Indicators links at facioquo (#457) #208

# For more information see:
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Test code coverage
on:
push:
branches: ["main"]
pull_request:
branches: ["*"]
workflow_dispatch:
# Limit concurrent runs
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
name: indicators
runs-on: ubuntu-latest
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
steps:
- name: Checkout source
uses: actions/checkout@v6
with:
# Explicitly checkout PR code
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.x
dotnet-quality: ga
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: 3.13
cache: "pip"
- name: Install dependencies
run: |
pip install -U --upgrade-strategy=only-if-needed pip
pip install -r requirements.txt
pip install -r requirements-test.txt
- name: Test indicators
run: |
coverage run -m --source=stock_indicators pytest
coverage xml
- name: Publish coverage to Codacy
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml