liboqs-upstream-trigger #326
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: GitHub actions simplified | |
| on: | |
| push: | |
| branches: [ "**" ] | |
| pull_request: | |
| branches: [ "**" ] | |
| repository_dispatch: | |
| types: [ "**" ] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: test-python-simplified-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ ubuntu-latest, macos-latest, windows-latest ] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| version: "latest" | |
| enable-cache: true | |
| cache-dependency-glob: "**/pyproject.toml" | |
| - name: Set up Python 3.9 | |
| run: uv python install 3.9 | |
| - name: Run examples | |
| run: | | |
| uv sync --extra dev | |
| uv run examples/kem.py | |
| uv run examples/sig.py | |
| uv run examples/rand.py | |
| uv run examples/stfl_sig.py | |
| uv run oqs/serialize.py | |
| - name: Run unit tests | |
| run: | | |
| # Ensure dev extras (nose2, pyasn1, etc.) are present | |
| uv sync --extra dev | |
| uv run nose2 --verbose |