feat: output file taps input file, introcude --drain-basins CLI option #71
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Checks | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.10'] | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
deps: ["none", "all"] | |
env: | |
# Display must be available globally for linux to know where xvfb is | |
DISPLAY: ":99.0" | |
QT_SELECT: "qt6" | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Setup xvfb (Linux) | |
if: runner.os == 'Linux' | |
run: | | |
# Stuff copied wildly from several stackoverflow posts | |
sudo apt-get install -y xvfb libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xinput0 libxcb-xfixes0 libxcb-shape0 libglib2.0-0 libgl1-mesa-dev | |
sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev | |
# start xvfb in the background | |
sudo /usr/bin/Xvfb $DISPLAY -screen 0 1280x1024x24 & | |
- name: Install Python dependencies | |
run: | | |
# prerequisites | |
python -m pip install --upgrade pip wheel | |
python -m pip install coverage flake8 pytest | |
# install base dependencies | |
# https://github.com/luispedro/mahotas/issues/144 | |
pip install mahotas==1.4.13 | |
pip install . | |
pip install -r tests/requirements.txt | |
# show installed packages | |
pip freeze | |
- name: Install extended dependencies | |
if: matrix.deps == 'all' | |
run: | | |
pip install .[cli,gui] | |
pip install -r tests/requirements-full.txt | |
- name: Lint with flake8 | |
run: | | |
flake8 --exclude _version.py . | |
- name: Start application and print version | |
if: matrix.deps == 'all' | |
env: | |
# Display must be available globally for linux to know where xvfb is | |
QT_DEBUG_PLUGINS: 1 | |
run: | | |
chipstream-gui --version | |
chipstream-cli --version | |
- name: Test with pytest | |
run: | | |
coverage run --source=chipstream -m pytest -x tests | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 |