You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.3 KiB
YAML
38 lines
1.3 KiB
YAML
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
|