Switch to UV #166
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
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 ruff | |
run: | | |
echo "pass!" | |
format_with_black: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Format with black | |
run: | | |
echo "pass!" | |
check_with_pydoclint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check with pydoclint | |
run: | | |
echo "pass!" | |
test_minimal_dependencies: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Test import | |
run: | | |
echo "pass!" | |
test_build_docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v4 | |
with: | |
enable-cache: true | |
- name: Set up Python | |
run: uv python install 3.10 | |
- name: Install dependencies | |
run: uv sync --no-install-project --all-extras --group ci --group torchcpu --group docs --no-group lint --no-group doclint | |
- name: Test import | |
run: | | |
uv run python -c "import ethicml" | |
- name: Install pandoc | |
run: sudo apt-get install -y pandoc | |
- name: Build with sphinx | |
run: | | |
uv run sphinx-build -W -b html ./docs ./docs/_build | |
test_with_pytest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Test with pytest | |
run: | | |
echo "pass!" |