Beautify code #111
Workflow file for this run
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: GitHub actions simplified | |
on: | |
push: | |
branches: [ "**" ] | |
pull_request: | |
branches: [ "**" ] | |
repository_dispatch: | |
types: [ "**" ] | |
permissions: | |
contents: read | |
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@v3 | |
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 | |
- name: Run unit tests | |
run: | | |
uv run nose2 --verbose |