Adds __map__ functionality #573
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
# This workflow will install Python dependencies, run tests and report coverage to coveralls | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: coverage | |
on: | |
pull_request: | |
branches: [master] | |
push: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- uses: actions/cache@v2 | |
with: | |
path: ${{ env.pythonLocation }} | |
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('REQUIREMENTS.txt') }}-${{ hashFiles('./requirements/DEV_REQUIREMENTS.txt') }}-${{ hashFiles('./requirements/S3_REQUIREMENTS.txt') }}-${{ hashFiles('./requirements/TUNE_REQUIREMENTS.txt') }}-${{ hashFiles('./requirements/TEST_EXTRAS_REQUIREMENTS_REQUIREMENTS.txt') }} | |
- name: Install dependencies and dev dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r REQUIREMENTS.txt | |
pip install -r ./requirements/DEV_REQUIREMENTS.txt | |
pip install -r ./requirements/S3_REQUIREMENTS.txt | |
pip install -r ./requirements/TUNE_REQUIREMENTS.txt | |
pip install -r ./requirements/TEST_EXTRAS_REQUIREMENTS.txt | |
- name: Test with pytest | |
run: | | |
coverage run -m pytest --cov-config=.coveragerc | |
- name: Convert to LCO | |
run: coverage lcov --rcfile=.coveragerc | |
- name: Upload coverage data to coveralls.io | |
uses: coverallsapp/github-action@v2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} |