Skip to content

Commit

Permalink
Init autobuild worlfow
Browse files Browse the repository at this point in the history
  • Loading branch information
KernelA committed Aug 25, 2023
1 parent d5dad7b commit 708dedc
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 3 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build-and-publihs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Python package

on:
push:
branches:
- master
- develop
pull_request:
branches:
- develop
- master

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.9"]
os: ["ubuntu-latest", "windows-latest", "macos-latest"]

steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'requirements.*.txt'

- name: Install dependencies
run: pip install -r ./requirements.cpu.txt -r ./requirements.dev.txt

- name: Build package
run: python -m build --no-isolation -w

- name: Install package
run: pip install ./dist/*.whl

- name: Run tests
run: |
rm -r ./yolo_models
pytest ./tests
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
skip = ["setup.py"]

[project]
name = "yolo_models"
name = "touch_designer_yolo_models"
authors =[ { name="None" }]
requires-python = ">=3.9"
version = "0.0.1"
Expand Down
1 change: 0 additions & 1 deletion requirements.base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ onnxsim~=0.4.33
onnx~=1.14.0
ipykernel
cython~=3.0.0
build~=0.10.0
-r ./requirements.inference.txt
1 change: 1 addition & 0 deletions requirements.dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ pylint
pytest
setuptools>=63.0
wheel>=0.40
build~=0.10.0
twine~=4.0.2
1 change: 1 addition & 0 deletions requirements.torch.cpu.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
--extra-index-url https://download.pytorch.org/whl/cpu
torch~=2.0.1
torchvision~=0.15.2
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import numpy as np
from setuptools import Extension, find_packages, setup
import numpy as np
from Cython.Build import cythonize


Expand Down

0 comments on commit 708dedc

Please sign in to comment.