Docs: clears misunderstanding on where Macros can be used (#973) #280
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: Test | |
on: [push, pull_request] | |
jobs: | |
build: | |
continue-on-error: true | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | |
strategy: | |
matrix: | |
python-version: ["3.7", "3.11"] # min and max supported versions? | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# broken "Error: Cache folder path is retrieved for pip but doesn't exist on disk: /home/runner/.cache/pip" | |
# cache: 'pip' | |
# cache-dependency-path: setup.py | |
- name: Install dependencies | |
run: | | |
# Install deps as root since we will run tests as root | |
sudo scripts/ci-install-deps.sh | |
sudo pip install --no-binary :all: . | |
- name: Run tests | |
run: | | |
# FIXME: Had some permissions issues, currently worked around by running tests as root | |
mkdir test_tmp | |
export TMPDIR="$(realpath test_tmp)" | |
export DATA_DIR="/home/runner/work/input-remapper/input-remapper/data/" | |
# try this if input-remappers data cannot be found, and set DATA_DIR to a matching directory | |
# find / -type f -name "input-remapper.glade" | |
sudo -E python tests/test.py --start-dir unit |