Merge pull request #59 from NREL/58_versioneer #75
Workflow file for this run
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
name: test | |
on: [pull_request, push] | |
jobs: | |
pytest: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true # don't cancel other matrix jobs when one fails | |
matrix: | |
python-version: ["3.8", "3.11"] | |
# Test two environments: | |
# 1) dependencies with pinned versions from requirements.txt | |
# 2) 'pip install --upgrade --upgrade-strategy=eager .' to install upgraded | |
# dependencies from PyPi using version ranges defined within setup.py | |
env: [ | |
'-r requirements.txt .[all]', | |
'--upgrade --upgrade-strategy=eager .[all]' | |
] | |
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 ${{ matrix.env }} | |
run: | | |
pip install ${{ matrix.env }} | |
pip install coveralls wheel | |
- name: Test with pytest ${{ matrix.env }} | |
run: | | |
pytest --cov=bifacialvf | |
# - name: Coveralls | |
# run: | | |
# coveralls --service=github | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |