Skip to content

Commit

Permalink
delete pip workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
narumiruna committed Jun 24, 2024
1 parent 35c2875 commit d6ad95d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 50 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/poetry.yml

This file was deleted.

21 changes: 10 additions & 11 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,23 @@ jobs:
max-parallel: 1
matrix:
python-version: ["3.11"]
poetry-version: ["1.8.3"]
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry==${{ matrix.poetry-version }}
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Lint
run: |
pip install ruff
ruff check .
cache: poetry
- name: Install dependencies
run: |
pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/cpu
pip install .
run: poetry install
- name: Lint
run: poetry run ruff check .
- name: Type check
run: poetry run mypy --install-types --non-interactive .
- name: Test
run: |
pip install pytest pytest-cov
pytest -v -s --cov=. --cov-report=xml tests
run: poetry run pytest -v -s --cov=. --cov-report=xml tests
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
env:
Expand Down

0 comments on commit d6ad95d

Please sign in to comment.