EoSim Sanity #106
This file contains hidden or 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: EoSim Sanity | |
| on: | |
| schedule: | |
| - cron: '0 4 * * *' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| eosim-validation: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-22.04, windows-2022, macos-13] | |
| python: ['3.10', '3.11', '3.12'] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: Install EoSim from source (pinned) | |
| env: | |
| EOSIM_VERSION: "0.1.0" | |
| shell: bash | |
| run: | | |
| set -e | |
| git clone --depth 1 --branch v${EOSIM_VERSION} https://github.com/embeddedos-org/EoSim.git /tmp/EoSim | |
| pip install -e /tmp/EoSim | |
| - name: Validate EoSim installation | |
| shell: bash | |
| run: | | |
| set -e | |
| OUT=$(eosim --version 2>&1) | |
| echo "eosim --version: $OUT" | |
| if ! echo "$OUT" | grep -Eq '[0-9]+\.[0-9]+\.[0-9]+'; then | |
| echo "::error::eosim --version did not return a semantic version" | |
| exit 1 | |
| fi |