Skip to content

Use correct currency when fetching prices #17

Use correct currency when fetching prices

Use correct currency when fetching prices #17

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install --with dev
- name: Lint
run: |
poetry run flake8 nordpool --max-line-length=88
poetry run pylint nordpool
- name: Run tests
run: |
poetry run coverage run -m unittest discover -b
# - name: Coveralls
# uses: AndreMiras/coveralls-python-action@develop
# with:
# parallel: true
# flag-name: run-${{ matrix.test_number }}
# finish:
# needs: test
# runs-on: ubuntu-latest
# steps:
# - name: Coveralls Finished
# uses: AndreMiras/coveralls-python-action@develop
# with:
# parallel-finished: true