Skip to content
Merged
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
20 changes: 0 additions & 20 deletions .github/actions/setup_rye/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,6 @@ name: Set up rye
runs:
using: 'composite'
steps:
# rye uses uv under the hood, so we need to set the cache directory correctly, based on the OS
- name: Set UV_CACHE_DIR for Linux
if: runner.os == 'Linux'
run: |
echo "UV_CACHE_DIR=/home/runner/.cache/uv" >> $GITHUB_ENV
shell: bash
- name: Set MATURIN_PEP517_ARGS for Linux
if: runner.os == 'Linux'
# make sure we always use zig, to get manylinux2014 compatible rust binaries
run: |
echo "MATURIN_PEP517_ARGS=--zig" >> $GITHUB_ENV
shell: bash
- name: Set UV_CACHE_DIR for MacOS
if: runner.os == 'macOS'
run: echo "UV_CACHE_DIR=/Users/gh-runner/Library/Caches/uv" >> $GITHUB_ENV
shell: bash
- name: Set UV_CACHE_DIR for Windows
if: runner.os == 'Windows'
run: echo "UV_CACHE_DIR=C:\\Users\\useblocks\\AppData\\Local\\uv-${{ runner.name }}" >> $env:GITHUB_ENV
shell: pwsh
# now install rye and sync the dependencies
- uses: eifinger/setup-rye@v4
with:
Expand Down
24 changes: 10 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ permissions:
jobs:
pre-commit:
name: Pre-commit
runs-on: [self-hosted, linux, x64]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand All @@ -33,29 +33,25 @@ jobs:

mypy:
name: MyPy
runs-on: [self-hosted, linux, x64]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup_rye
- run: rye run mypy:all

pytest:
name: Pytest (${{ matrix.os }}-${{ matrix.arch }})
name: Pytest (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
include:
- os: linux
arch: x64
- os: linux
arch: arm64
- os: windows
arch: x64
- os: macos
arch: arm64
- os: ubuntu-latest
- os: ubuntu-24.04-arm
- os: windows-latest
- os: macos-latest

runs-on: [self-hosted, "${{ matrix.os }}", "${{ matrix.arch }}"]
runs-on: ["${{ matrix.os }}"]

steps:
- uses: actions/checkout@v4
Expand All @@ -64,7 +60,7 @@ jobs:

docs:
name: Documentation build
runs-on: [self-hosted, linux, x64]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
Expand All @@ -84,7 +80,7 @@ jobs:
- pytest
- docs

runs-on: [self-hosted, linux, x64]
runs-on: ubuntu-latest

steps:
- name: Decide whether the needed jobs succeeded or failed
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gh_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ concurrency:
jobs:
build:
name: Build
runs-on: [self-hosted, linux, x64]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Pages
Expand All @@ -45,7 +45,7 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: [self-hosted, linux, x64]
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
Expand Down
Loading