Skip to content

test: add unit tests for comment parser #133

test: add unit tests for comment parser

test: add unit tests for comment parser #133

Workflow file for this run

name: CI Workflow
on: [push]
jobs:
# Linting with Pre-commit
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v1
- name: Set up Python 3.12.6
uses: actions/setup-python@v5
with:
python-version: 3.12.6
# Run pre-commit hooks (e.g., black, flake8, isort)
- uses: pre-commit/action@v3.0.0
# Test runs
tests:
name: Test - Python ${{ matrix.python-version }} / Vyper ${{ matrix.vyper-version }}
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
python-version:
- "3.10.15"
- "3.11.11"
- "3.12.8"
- "3.13.1"
vyper-version:
- "0.4.1"
- "0.4.2"
- "0.4.3"
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "0.4.18"
enable-cache: true # Enables built-in caching for uv
- name: Set up Python ${{ matrix.python-version }}
run: uv python install 3.12.6
# Install dependencies with all extras (including dev)
- name: Install Requirements
run: uv sync --extra=dev
- name: Install natrix as module
run: uv pip install .
- name: Install Vyper
run: uv pip install vyper==${{ matrix.vyper-version }}
- name: Export Vyper version to environment
run: echo "VYPER_VERSION=${{ matrix.vyper-version }}" >> $GITHUB_ENV
# Run tests with environment variables
- name: Run Tests with Python ${{ matrix.python-version }} and Vyper ${{ matrix.vyper-version }}
run: uv run pytest -n=auto