diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 3474366..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,22 +0,0 @@ -# name: Run updater that will check for conda-forge packages - -on: - push: - branches: [ "main" ] - pull_request: - -jobs: - run_tests: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - uses: prefix-dev/setup-pixi@v0.5.1 - with: - pixi-version: "latest" - environments: test - - - name: run tests - run: | - pixi run -e test pytest diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..f2ff2e5 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,29 @@ +# name: Run updater that will check for conda-forge packages + +on: + push: + branches: [ "main" ] + pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true +jobs: + run_tests: + name: ${{ matrix.pixi-environment }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + pixi-environment: + - py312 + - py311 + - py310 + steps: + - uses: actions/checkout@v4 + - uses: prefix-dev/setup-pixi@v0.5.1 + with: + pixi-version: "latest" + environments: ${{ matrix.pixi-environment }} + - name: run tests + run: | + pixi run --environment ${{ matrix.pixi-environment }} test diff --git a/pixi.toml b/pixi.toml index 0a70619..3385f59 100644 --- a/pixi.toml +++ b/pixi.toml @@ -7,7 +7,6 @@ channels = ["conda-forge"] platforms = ["win-64", "linux-64", "osx-64", "osx-arm64"] [tasks] - build_sdist = "pixi run python -m build --sdist" [dependencies] @@ -24,16 +23,14 @@ typing-extensions = ">=4.12.2,<4.13" [pypi-dependencies] rattler-build-conda-compat = { path = ".", editable = true} - [feature.test.dependencies] pytest = "*" syrupy = "*" ruff = "*" [feature.test.tasks] -test = "pytest" -snapshot_update = "pytest --snapshot-update" - +test = "pytest tests" +snapshot_update = "pytest --snapshot-update tests" [feature.lint.dependencies] pre-commit = ">=3.7.1,<4" @@ -48,7 +45,17 @@ pre-commit-install = "pre-commit-install" pre-commit-run = "pre-commit run" type-check = "mypy src" +[feature.py312.dependencies] +python = "3.12.*" + +[feature.py311.dependencies] +python = "3.11.*" + +[feature.py310.dependencies] +python = "3.10.*" [environments] -test = ["test"] +py312 = { features = ["py312"], solve-group = "py312" } +py311 = ["py311"] +py310 = ["py310"] lint = { features = ["lint"], no-default-feature = true, solve-group = "default" }