Skip to content

Clean up the CI

Clean up the CI #153

Workflow file for this run

name: EthicML dummy CI
on:
pull_request:
branches:
- main
paths: # these are exactly the paths that are ignored in the real CI
- 'docs/**'
- 'examples/**'
- '**/*.md'
- .github/dependabot.yml
- .github/release.yml
- .github/workflows/docs.yml
- .github/workflows/dummy_ci.yml
- .github/workflows/dependabot_auto.yml
- .github/workflows/labeler.yml
- .gitignore
- CODEOWNERS
- LICENSE
- make_release.sh
- CITATION.cff
jobs:
lint_with_ruff:
runs-on: ubuntu-latest
steps:
- name: Lint with pylint
run: |
echo "pass!"
format_with_black:
runs-on: ubuntu-latest
steps:
- name: Format with black and isort
run: |
echo "pass!"
check_docstrings:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'poetry'
- name: Install dependencies
run: |
poetry env use 3.10
poetry install --no-interaction --no-root --all-extras --with docs,torchcpu --without ci,lint,format
- name: Install pandoc
run: sudo apt-get install -y pandoc
- name: Build with sphinx
run: |
poetry run sphinx-build -W -b html ./docs ./docs/_build
check_with_darglint:
runs-on: ubuntu-latest
steps:
- name: Check with darglint
run: |
echo "pass!"
test_minimal_dependencies:
runs-on: ubuntu-latest
steps:
- name: Check with darglint
run: |
echo "pass!"
test_full_dependencies:
runs-on: ubuntu-latest
steps:
- name: Check with darglint
run: |
echo "pass!"
test_with_pytest:
runs-on: ubuntu-latest
steps:
- name: Test with pytest
run: |
echo "pass!"