diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..541cc7a8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,40 @@ +name: ci + +on: [push, pull_request] + +jobs: + test: + name: Test - ${{ matrix.python-version }} - ${{matrix.os}} + runs-on: ${{matrix.os}} + + strategy: + matrix: + python-version: ["3.11", "3.12"] + os: [ubuntu-latest, macOs-latest] + fail-fast: false + + steps: + - uses: actions/checkout@v4 + - name: Install the latest version of uv + uses: astral-sh/setup-uv@v3 + with: + version: "latest" + enable-cache: true + cache-dependency-glob: "**/pyproject.toml" + + - name: Check if cache used + if: steps.setup-uv.outputs.cache-hit == 'true' + run: echo "Cache was restored" + + - name: Set up python env + run: | + uv venv --python ${{ matrix.python-version }} + uv sync --dev + + - name: Run pre-commit + continue-on-error: true + run: make pre-commit + + - name: Run tests + # For example, using `pytest` + run: make test diff --git a/.gitignore b/.gitignore index a979c7c6..49ea5f3f 100644 --- a/.gitignore +++ b/.gitignore @@ -141,7 +141,6 @@ __MACOSX # Extra directories/files /**data*/ -**/**test*.* !tests/*/* agml/_helios agml/helios_config.sh @@ -161,6 +160,7 @@ agml/models/training/*.log agml/models/training/*.err agml/models/training/*.out agml/models/training/*.csv -.*/ +# .*/ / *.pptx +.ruff_cache \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1d35be08..3400045c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ # Contributing Guidelines -Thank you for choosing to contribute to AgML! +Thank you for choosing to contribute to AgML! ## Contributing Data @@ -29,15 +29,15 @@ Image classification datasets are organized in the following directory tree: └──