Check Release #18
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: Check Release | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| # every first day of the week | |
| - cron: '0 0 * * *' | |
| # push: | |
| jobs: | |
| release-linux-mac: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macOS-latest] | |
| python-version: ['3.12', '3.11', '3.10'] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install onnx-diagnostic | |
| run: pip install onnx-diagnostic | |
| - name: Version | |
| run: | | |
| python -c "import onnx_diagnostic;print(onnx_diagnostic.__version__)" | |
| - name: Installation path | |
| run: python -c "import onnx_diagnostic;print(onnx_diagnostic.__file__)" | |
| - name: git checkout | |
| run: | | |
| git init | |
| git remote add -f origin https://github.com/sdpython/onnx-diagnostic.git | |
| git config core.sparsecheckout true | |
| echo _unittests/ >> .git/info/sparse-checkout | |
| echo _doc/examples/ >> .git/info/sparse-checkout | |
| echo pyproject.toml >> .git/info/sparse-checkout | |
| echo requirements-dev.txt >> .git/info/sparse-checkout | |
| git pull origin main | |
| VERSION=$(python -c "import onnx_diagnostic;print(onnx_diagnostic.__version__)") | |
| git checkout tags/${VERSION} -b thistag | |
| - name: ls | |
| run: ls . | |
| - name: Install requirements | |
| run: pip install -r requirements-dev.txt | |
| - name: Run pytest | |
| run: pytest _unittests | |
| release-windows: | |
| strategy: | |
| matrix: | |
| os: [windows-latest] | |
| python-version: ['3.12', '3.11', '3.10'] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install onnx-diagnostic | |
| run: pip install onnx-diagnostic | |
| - name: Version | |
| run: | | |
| python -c "import onnx_diagnostic;print(onnx_diagnostic.__version__)" | |
| - name: Installation path | |
| run: python -c "import onnx_diagnostic;print(onnx_diagnostic.__file__)" | |
| - name: git checkout | |
| run: | | |
| git init | |
| git remote add -f origin https://github.com/sdpython/onnx-diagnostic.git | |
| git config core.sparsecheckout true | |
| echo _unittests/ >> .git\info\sparse-checkout | |
| echo _doc/examples/ >> .git\info\sparse-checkout | |
| echo pyproject.toml >> .git\info\sparse-checkout | |
| echo requirements-dev.txt >> .git/info/sparse-checkout | |
| git pull origin main | |
| git checkout tags/0.2.2 -b thistag | |
| - name: ls | |
| run: ls . | |
| - name: Install requirements | |
| run: pip install -r requirements-dev.txt | |
| - name: Run pytest | |
| run: pytest _unittests |