Skip to content

Commit

Permalink
cleaning up CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bonevbs committed Aug 27, 2024
1 parent 78770c2 commit 7a4a463
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ jobs:

- name: Install build dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build wheel setuptools numpy torch
python3 -m pip install --upgrade pip setuptools build wheel
python3 -m pip install numpy
python3 -m pip install torch --extra-index-url https://download.pytorch.org/whl/cpu
- name: Build distribution
run: |
python -m build
python3 -m build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,21 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: "3.9"

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip setuptools wheel
python3 -m pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu
python3 -m pip install torch --extra-index-url https://download.pytorch.org/whl/cpu
- name: Install package
run: |
python3 -m pip install -e .
- name: Test with pytest
run: |
python3 -m pip install pytest pytest-cov parameterized
Expand Down

0 comments on commit 7a4a463

Please sign in to comment.