Skip to content

Make suggester branches more unique #470

Make suggester branches more unique

Make suggester branches more unique #470

Workflow file for this run

name: Testing
on: [pull_request]
jobs:
build:
env:
RELEASE: release-py3x.yml
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.10']
runs-on: ubuntu-latest
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: Install dependencies
run: |
sudo apt update
sudo apt install csh
- name: Setup Komodo
run: |
./bootstrap.sh $(which python)
- name: Unit tests
run: boot/kmd-env/bin/python -m pytest tests
- name: Lint examples
run: |
boot/kmd-env/bin/python -m komodo.lint examples/stable.yml examples/repository.yml
- name: Full integration test
run: |
./run_kmd.sh \
ci/${RELEASE} \
ci/repository.yml \
--workspace ${{ runner.temp }}/kmd-ws \
--prefix ${{ runner.temp }}/pfx \
--release ci \
--locations-config $(realpath ci/locations.yml) \
- name: Build libkmd.so (a dummy C library) for testing
run: |
ci/build_lib.sh ${{ runner.temp }}/pfx/ci
source ${{ runner.temp }}/pfx/ci/enable
which python
python --version
python -c "import numpy;print(numpy.__file__)"
ci/test_import_lib.py
- name: Test enable script
run: |
source ${{ runner.temp }}/pfx/ci/enable
[[ "$(which python)" == "${{ runner.temp }}/pfx/ci/root/bin/python" ]]
- name: Test Python version
run: |
source ${{ runner.temp }}/pfx/ci/enable
pyver=$(python -c 'from sys import version_info as v;print(f"{v[0]}.{v[1]}")')
[[ "${pyver}" == "${{ matrix.python-version }}" ]]