diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0e7eb16..fb60c18 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ['3.9', '3.10', '3.11'] + python-version: ['3.9', '3.12'] env: [base] include: - os: macos-latest @@ -26,23 +26,28 @@ jobs: env: win - os: ubuntu-latest python-version: '3.11' - env: no-oe + env: minimal steps: - uses: actions/checkout@v4 - - name: Install micromamba - uses: mamba-org/setup-micromamba@v2 + - name: Install uv + uses: astral-sh/setup-uv@v3 with: - environment-file: ci/requirements/py-${{ matrix.env }}.yml - environment-name: test-env - cache-environment: true - create-args: >- - python=${{ matrix.python-version }} - conda + version: "latest" + enable-cache: true + + - name: Install python + run: uv python install ${{ matrix.python-version }} + + - name: Install dependencies + run: uv pip install -r ci/requirements/${{ matrix.env }}.txt + + - name: Install cotengra + run: uv pip install -e . - name: Test with pytest - run: pytest --cov=cotengra tests/ --cov-report=xml tests + run: uv run pytest --cov=cotengra tests/ --cov-report=xml tests - name: Report to codecov uses: codecov/codecov-action@v4 diff --git a/ci/requirements/base.txt b/ci/requirements/base.txt new file mode 100644 index 0000000..5ad0b3c --- /dev/null +++ b/ci/requirements/base.txt @@ -0,0 +1,15 @@ +autoray +cmaes>=0.10 +cotengrust +coverage +kahypar +matplotlib +networkx +nevergrad +opt_einsum +optuna +pytest +pytest-cov +ray +seaborn +tqdm \ No newline at end of file diff --git a/ci/requirements/mac.txt b/ci/requirements/mac.txt new file mode 100644 index 0000000..b5edaec --- /dev/null +++ b/ci/requirements/mac.txt @@ -0,0 +1,15 @@ +autoray +cmaes>=0.10 +cotengrust +coverage +# kahypar +matplotlib +networkx +nevergrad +opt_einsum +optuna +pytest +pytest-cov +ray +seaborn +tqdm \ No newline at end of file diff --git a/ci/requirements/minimal.txt b/ci/requirements/minimal.txt new file mode 100644 index 0000000..11a45b3 --- /dev/null +++ b/ci/requirements/minimal.txt @@ -0,0 +1,15 @@ +autoray +cmaes>=0.10 +# cotengrust +coverage +kahypar +matplotlib +networkx +nevergrad +# opt_einsum +optuna +pytest +pytest-cov +# ray +seaborn +tqdm \ No newline at end of file diff --git a/ci/requirements/py-base.yml b/ci/requirements/py-base.yml deleted file mode 100644 index 3ca229a..0000000 --- a/ci/requirements/py-base.yml +++ /dev/null @@ -1,21 +0,0 @@ -channels: - - defaults - - conda-forge -dependencies: - - autoray - - cmaes>=0.10 - - coverage - - matplotlib - - networkx - - opt_einsum - - optuna - - pytest - - pytest-cov - - seaborn - - tqdm - - pip - - pip: - - kahypar - - nevergrad - - ray - diff --git a/ci/requirements/py-mac.yml b/ci/requirements/py-mac.yml deleted file mode 100644 index 24e9829..0000000 --- a/ci/requirements/py-mac.yml +++ /dev/null @@ -1,20 +0,0 @@ -channels: - - defaults - - conda-forge -dependencies: - - autoray - - cmaes>=0.10 - - coverage - - matplotlib - - networkx - - opt_einsum - - optuna - - pytest - - pytest-cov - - seaborn - - tqdm - - pip - - pip: - # - kahypar - - nevergrad - - ray diff --git a/ci/requirements/py-no-oe.yml b/ci/requirements/py-no-oe.yml deleted file mode 100644 index 589b4bd..0000000 --- a/ci/requirements/py-no-oe.yml +++ /dev/null @@ -1,20 +0,0 @@ -channels: - - defaults - - conda-forge -dependencies: - - autoray - - cmaes>=0.10 - - coverage - - matplotlib - - networkx - - optuna - - pytest - - pytest-cov - - seaborn - - tqdm - - pip - - pip: - - kahypar - - nevergrad - - ray - diff --git a/ci/requirements/py-win.yml b/ci/requirements/py-win.yml deleted file mode 100644 index 278baed..0000000 --- a/ci/requirements/py-win.yml +++ /dev/null @@ -1,21 +0,0 @@ -channels: - - defaults - - conda-forge -dependencies: - - autoray - - cmaes>=0.10 - - coverage - - matplotlib - - networkx - - opt_einsum - - optuna - - pytest - - pytest-cov - - seaborn - - tqdm - - pip - - pip: - # - kahypar - - nevergrad - # - ray - diff --git a/ci/requirements/win.txt b/ci/requirements/win.txt new file mode 100644 index 0000000..ab72d27 --- /dev/null +++ b/ci/requirements/win.txt @@ -0,0 +1,15 @@ +autoray +cmaes>=0.10 +cotengrust +coverage +# kahypar +matplotlib +networkx +nevergrad +opt_einsum +optuna +pytest +pytest-cov +# ray +seaborn +tqdm \ No newline at end of file