Convert task classes to more generic so they can be re-used (#504) #209
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: package install checks | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- .pre-commit-config.yaml | |
- .github/workflows/package.yml | |
- '**.py' | |
- poetry.lock | |
- pyproject.toml | |
- '**.ipynb' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- .pre-commit-config.yaml | |
- .github/workflows/package.yml | |
- '**.py' | |
- poetry.lock | |
- pyproject.toml | |
- '**.ipynb' | |
jobs: | |
base-package-install-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install pip | |
run: python3 -m pip install --upgrade pip | |
- uses: actions/setup-python@v4.7.1 | |
with: | |
python-version: '3.10' | |
- name: Install package and test import | |
run: | | |
pip install -e . | |
pip install pytest | |
python3 -m pytest tests/package/*.py | |
extra-models-package-install-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install pip | |
run: python3 -m pip install --upgrade pip | |
- uses: actions/setup-python@v4.7.1 | |
with: | |
python-version: '3.10' | |
- name: Install package and test import | |
run: | | |
pip install -e ".[models]" | |
pip install pytest | |
python3 -m pytest tests/package/extras/models.py | |
extra-report-package-install-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install pip | |
run: python3 -m pip install --upgrade pip | |
- uses: actions/setup-python@v4.7.1 | |
with: | |
python-version: '3.10' | |
- name: Install package and test import | |
run: | | |
pip install -e ".[report]" | |
pip install pytest | |
python3 -m pytest tests/package/extras/report.py |