Refactor for builder changes and Individual Datasets #39
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 and Lint RO-Crate generation | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.11"] | |
name: Python ${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install latest GPG | |
run: sudo apt update && sudo apt install -y gnupg | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Install Dependencies | |
run: poetry install | |
if: steps.cache.outputs.cache-hit != 'true' | |
- name: isort - check import formatting | |
run: poetry run python -m isort --check --diff --profile black src/ | |
- name: Black - check code formatting | |
run: poetry run python -m black --check --diff . | |
- name: pytest - run the tests | |
run: poetry run python -m pytest -vv | |
- name: pylint - static code analysis | |
run: poetry run python -m pylint --rcfile .pylintrc src/ | |
- name: mypy - load types | |
run: poetry run mypy --install-types --non-interactive | |
- name: mypy - static type checking | |
# Takes configuration from pyproject.toml | |
run: poetry run python -m mypy | |
#add safety and bandit back in!!!!dfpaj'f |