Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .dprint.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"yaml": {
"printWidth": 100,
"formatComments": true,
"braceSpacing": false,
},
"excludes": [ "**/*-lock.json", "**/*.lock", "**/node_modules/", "dist/" ],
"plugins": [
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.1.wasm",
],
}
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# GitHub syntax highlighting
pixi.lock linguist-language=YAML
pixi.lock merge=binary linguist-language=YAML linguist-generated=true
Cargo.lock merge=binary linguist-generated=true
5 changes: 5 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
paths:
.github/workflows/rust.yml:
# https://github.com/rhysd/actionlint/pull/542
ignore:
- 'label "windows-11-arm" is unknown.+'
16 changes: 8 additions & 8 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}

- uses: prefix-dev/setup-pixi@v0.8.5
- uses: prefix-dev/setup-pixi@v0.9.0

- name: Build docs for PR
run: |
Expand Down Expand Up @@ -74,11 +74,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
with:
submodules: recursive

- uses: prefix-dev/setup-pixi@v0.8.5
- uses: prefix-dev/setup-pixi@v0.9.0

- name: Build docs for test
run: |
Expand All @@ -90,7 +90,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
with:
# fetch everything so we can checkout the tag
fetch-depth: 0
Expand All @@ -102,7 +102,7 @@ jobs:
run: |
git checkout tags/${{ github.event.inputs.tag }}

- uses: prefix-dev/setup-pixi@v0.8.5
- uses: prefix-dev/setup-pixi@v0.9.0

- name: Configure Git user
run: |
Expand All @@ -127,13 +127,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
with:
# fetch everything so we can checkout the tag
fetch-depth: 0
submodules: recursive

- uses: prefix-dev/setup-pixi@v0.8.5
- uses: prefix-dev/setup-pixi@v0.9.0

- name: Configure Git user
run: |
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/end-to-end.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
on:
push:
branches: [ main ]
branches: [main]
paths:
- "src/**"
- "Cargo.*"
- "rust-tests/**"
- "test/end-to-end/**"
- ".github/workflows/end-to-end.yml"
pull_request:
paths:
- "src/**"
- "Cargo.*"
- "rust-tests/**"
- "test/end-to-end/**"
- ".github/workflows/end-to-end.yml"

name: End-to-End testing

Expand All @@ -29,23 +31,23 @@ jobs:
run_tests:
strategy:
matrix:
os: [ "ubuntu-latest", "windows-latest", "macos-latest" ]
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
fail-fast: false

name: Run tests
runs-on: ${{ matrix.os }}
steps:
- name: Checkout source code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2
with:
workspaces: ". -> target-pixi"
key: ${{ hashFiles('pixi.lock') }}
- uses: prefix-dev/setup-pixi@v0.8.5
- uses: prefix-dev/setup-pixi@v0.9.0
# build in release mode so that it's reasonably fast to run the tests
- run: pixi run build-release
- run: pixi run test-ci
- run: pixi run test-end-to-end -s -v
- run: pixi run test-end-to-end -v
env:
PREFIX_DEV_READ_ONLY_TOKEN: ${{ secrets.PREFIX_DEV_READ_ONLY_TOKEN }}
ANACONDA_ORG_TEST_TOKEN: ${{ secrets.ANACONDA_ORG_TEST_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/enforce-sha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
- name: Ensure SHA pinned actions
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@4830be28ce81da52ec70d65c552a7403821d98d4 # v3
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@fc87bb5b5a97953d987372e74478de634726b3e5 # v3
with:
allowlist: |
prefix-dev/
12 changes: 7 additions & 5 deletions .github/workflows/pre-commit.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: pre-commit
name: lint

on:
push:
Expand All @@ -15,10 +15,12 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
with:
submodules: recursive
- name: Set up pixi
uses: prefix-dev/setup-pixi@v0.8.5
uses: prefix-dev/setup-pixi@v0.9.0
with:
environments: lint
- name: pre-commit
run: pixi run pre-commit-run --color=always --show-diff-on-failure
- name: lint (if this step fails, please 'pixi run lint' locally and push the changes)
run: pixi run lint
10 changes: 5 additions & 5 deletions .github/workflows/python-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Python bindings CI

on:
push:
branches: [ main ]
branches: [main]
pull_request:
paths:
# When we change pyproject.toml, we want to ensure that the maturin builds still work
Expand All @@ -11,10 +11,10 @@ on:
- Cargo.*

# When something in the bindings themselves changes
- 'py-rattler-build/**/*'
- "py-rattler-build/**/*"

# Or when this workflow changes
- '.github/workflows/python-bindings.yml'
- ".github/workflows/python-bindings.yml"
workflow_dispatch:

concurrency:
Expand All @@ -29,10 +29,10 @@ jobs:
name: Format, Lint and Test Python bindings
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
with:
submodules: recursive
- uses: prefix-dev/setup-pixi@v0.8.5
- uses: prefix-dev/setup-pixi@v0.9.0
with:
manifest-path: py-rattler-build/pixi.toml
- name: Check formatting
Expand Down
Loading