Skip to content

Commit

Permalink
switch to uv for ci actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jerpint committed Nov 27, 2024
1 parent af83f07 commit bb7edb9
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,34 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: python-3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3

- name: Set up Python
run: uv python install 3.11

- name: linting checks
run: |
python -m pip install --upgrade pip
pip install flake8 flake8-docstrings isort
uv pip install flake8 flake8-docstrings isort
sh hooks/pre-commit
- name: install project dependencies
run: |
pip install -e .
- name: Install the project
run: uv sync --all-extras --dev

- name: unit tests
run: |
pytest --cov=amlrt-project
uv run pytest --cov=amlrt-project
- name: pytorch-end2end-single
run: |
./tests/end2end_pytorch/run_single.sh
uv run ./tests/end2end_pytorch/run_single.sh
- name: pytorch-end2end-orion
run: |
./tests/end2end_pytorch/run_orion.sh
uv run ./tests/end2end_pytorch/run_orion.sh
- name: type checking
run: |
pytype amlrt_project/
uv run pytype amlrt_project/
- name: doc-creation-test
run: |
./tests/test_docs/run.sh
uv run ./tests/test_docs/run.sh

0 comments on commit bb7edb9

Please sign in to comment.