Skip to content

Commit

Permalink
💩 Enable pytest on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Dec 3, 2024
1 parent 6c24477 commit f8f0abb
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ jobs:
include:
- runs-on: ubuntu-latest
shell: bash
# SystemError: PyDescr_NewMember used with Py_RELATIVE_OFFSET
# - runs-on: macos-latest
# shell: bash
- runs-on: macos-latest
shell: bash
- runs-on: windows-latest
shell: msys2
runs-on: ${{matrix.runs-on}}
Expand All @@ -49,17 +48,24 @@ jobs:
run: |
sudo apt-get -y update
sudo apt-get -y install librime-dev
- name: Install dependencies
if: runner.os == 'macOS'
run: |
brew tap tonyfettes/homebrew-rime
brew install librime
- name: Install dependencies
if: runner.os == 'Windows'
run: |
pacman -Sy --noconfirm mingw-w64-x86_64-pkg-config \
mingw-w64-x86_64-librime mingw-w64-x86_64-python-pip \
mingw-w64-x86_64-ninja mingw-w64-x86_64-gcc
- uses: cachix/install-nix-action@v24
if: runner.os == 'macOS'
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
extra_nix_config: |
experimental-features = nix-command flakes
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
if: runner.os == 'macOS'
run: |
nix-env -iA nixpkgs.librime
export PKG_CONFIG_PATH="$HOME/.nix-profile"
- name: Test
run: |
pip install .[dev]
Expand Down

0 comments on commit f8f0abb

Please sign in to comment.