Git Product home page Git Product logo

headless-gui's Introduction

Heyo

I'm currently working at CZI on open source software for scientific imaging.

I have a Ph.D. in medical physics (mostly imaging, mostly MRI) from the University of Wisconsin, but consider myself primarily a programmer.

I mostly do ๐Ÿ Python stuff, but I'm spending a lot of my spare time learning ๐Ÿฆ€ Rust.

headless-gui's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

headless-gui's Issues

support custom `shell`, or hack support for setup-miniconda?

hey @aganders3

One challenge that always popped up with setup-xvfb is that of trying to use conda-incubator/setup-miniconda to install certain dependencies. (e.g. if you can't use all pip for some reason).

When using https://github.com/conda-incubator/setup-miniconda/ ... one generally has to use shell: bash -el {0} when running a command to access the conda environment. This appears to be hard to do with @actions/exec.exec. To demonstrate the problem:

jobs:
  test:
    runs-on: ubuntu-latest
    defaults:
      run:
        shell: bash -l {0}  # for setup-miniconda
    steps:
      - uses: actions/checkout@v2
      - uses: conda-incubator/setup-miniconda@v2
        with:
          mamba-version: "*"
          channels: conda-forge
          channel-priority: strict
          python-version: '3.10'
      - name: Print python
        run: which python  # prints: /usr/share/miniconda/envs/test/bin/python 

      - name: Print from headless-gui
        uses: aganders3/headless-gui@v1
        with:
          run: which python  # prints /usr/bin/python

... so basically one can't access the miniconda environment from within the headless-gui context.

This is likely a shortcoming of https://github.com/actions/toolkit/tree/main/packages/exec (see actions/toolkit#229 ...), but curious if you have any thoughts on a workaround?

possible that pyqt6 isn't working with xvfb server, but is working with xvfb-run

Haven't been able to figure this out yet, but I've been noticing that all of the ubuntu-latest pyqt6 tests are immediately failing with Aborted (core dumped). see example: https://github.com/pyapp-kit/superqt/actions/runs/4998490149

I did try logging in to my own linux box and setting up a similar environment, I got the same result (just with pyqt6), on the first test that tries to run (doesn't matter which, I can ignore/select anything and it always fails the same way). However, if I use xvfb-run pytest, instead of starting an Xvfb server, it seems to work fine.

I know that's not a lot to go on ๐Ÿ˜‚ ... but might possibly indicative of an annoying issue. It may very well also be specific to superqt (haven't tested a minimal example yet on CI).

Ignore source map in git

I don't think it is necessary for running the action, and if needed for debugging it could still be added locally. Right now I feel lit just creates noise in the diffs.

Support for working-directory: parameter

GabrielBB/xvfb-action supported an optional working-directory: to run commands in a different directory from the root. This can be important to set for certain commands such as running jupyter notebooks, because run: cd some-dir doesn't work. It would be good for headless-gui to support this argument as well! ๐Ÿ™

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.