fix for reading variables from xlsx file #189
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: mango full unit testing | |
on: | |
pull_request: | |
types: [opened, edited, synchronize, reopened] | |
paths: | |
- 'mango/**' | |
- 'requirements.txt' | |
- 'pyproject.toml' | |
- 'requirements-dev.txt' | |
- '.github/workflows/**' | |
push: | |
branches: | |
- master | |
- development | |
jobs: | |
unit-testing: | |
name: Run all unit test suites | |
runs-on: ${{ matrix.os }} | |
strategy: | |
max-parallel: 21 | |
matrix: | |
python-version: [3.8, 3.9, '3.10', '3.11', '3.12'] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
cache-dependency-path: './requirements-dev.txt' | |
- name: Install macOS dependencies | |
if: matrix.os == 'macos-latest' | |
run: | | |
brew install libomp | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements-dev.txt | |
- name: Run unit testing | |
run: | | |
coverage run --source=./mango/ --omit=./mango/tests/ -m unittest discover -s mango/tests | |
coverage report -m | |
coverage xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
flags: unit-tests | |
token: ${{ secrets.CODECOV_TOKEN }} | |
setup-testing: | |
name: Build the library to test that it gets correctly built | |
needs: unit-testing | |
defaults: | |
run: | |
working-directory: . | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Install wheel | |
run: | | |
python -m pip install --upgrade pip | |
pip install build | |
- name: Build binary wheel and source tarball | |
run: | | |
python -m build |