Skip to content

Commit

Permalink
included windows-latest on run_tests.yml #380
Browse files Browse the repository at this point in the history
  • Loading branch information
Álvaro Bartolomé authored Jun 5, 2021
1 parent 26a61ca commit 86a6d4f
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,27 @@ on:
- tests/**

jobs:
build:
runs-on: ubuntu-latest
run-investpy-tests:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 4
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip before package installation
run: python -m pip install --upgrade pip
- name: Install Python package dependencies
run: pip install .
- name: Install pytest requirements
run: pip install investpy[tests]
- name: Run pytest unit tests and check codecov

- name: Upgrade pip and install requirements
run: |
python -m pip install --upgrade pip
pip install .
pip install .[tests]
- name: Run pytest tests and check codecov
run: pytest --cov-report term --cov=investpy tests/

0 comments on commit 86a6d4f

Please sign in to comment.