chore: Update packages, settings (#399) #95
This file contains 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
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
name: Test with code coverage | |
on: ["push"] | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: indicators | |
runs-on: macos-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.x | |
dotnet-quality: "ga" | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Install requirements | |
run: | | |
pip install -r requirements.txt | |
pip install -r requirements-test.txt | |
- name: Test indicators | |
run: | | |
sed -i '' 's/export\ LC_ALL=en_US.UTF-8/export\ LC_ALL=ru_RU.UTF-8/g' ~/.bashrc | |
source ~/.bashrc | |
locale | |
coverage run -m --source=stock_indicators pytest -svr A tests | |
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 |