Demo polishing #65
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: CI-build-tests | |
on: | |
push: | |
branches: [ "develop" ] | |
pull_request: | |
branches: [ "develop" ] | |
env: | |
BRANCH: develop | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest]#, windows-latest, macos-latest] | |
python-version: ["3.10"] | |
runs-on: ${{ matrix.os }} | |
# Placeholder for Docker on our Amazon AWS Runner | |
#container: | |
# image: ubuntu-latest | |
# options: --user 1000 | |
steps: | |
# VN at 16 March 2023: checkout/v3 causes some weird issues, so went for manual cloning instead... | |
#- uses: actions/checkout@v3 | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
#- name: clone repo | |
# run: git clone https://github.com/dtcc-platform/${{ github.event.repository.name }} -b $BRANCH && pwd | |
- name: pip install MacOS/Ubuntu | |
run: ls -alt && export PATH="$pythonLocation:$PATH" && python --version && export "DEB_PYTHON_INSTALL_LAYOUT=deb_system" && pip install . | |
if: matrix.os != 'windows-latest' | |
- name: pip install Windows | |
run: pip install . | |
if: matrix.os == 'windows-latest' | |
# ${{ github.event.repository.name }}/ | |
# shell: bash {0} | |
#- name: cmake install | |
# run: cd ${{ github.event.repository.name }}/build/ && cmake .. && make all && sudo make install && cd .. | |
- name: run tests | |
run: pwd && ls -alt && cd tests/ && pwd && ls -alt && sh run-tests | |
if: matrix.os != 'windows-latest' | |
#- name: cleanup op | |
# if: always() | |
# run : sudo find /Runner/Runner/_work/${{ github.event.repository.name }}/. -name . -o -prune -exec rm -rf -- {} + || true | |
# This fails after checkout/v3 was not used | |
#- name: more cleanup ops | |
# run : pwd && sudo rm -rf /home/ubuntu/Runner/actions-runner/_work/${{ github.event.repository.name }} |