add elliptic12 function + tests #605
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: Python CI | |
on: | |
push: | |
branches: | |
- '**' # Triggers on push to any branch | |
pull_request: | |
branches: | |
- '**' # Triggers on PR creation, updates, or reopening against any branch | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.12.2' | |
- name: Install dependencies | |
run: | | |
pip install -r software/python/requirements.txt | |
- name: Install linters and formatters | |
run: | | |
pip install black==24.10.0 flake8==7.0.0 | |
- name: Run Black formatter | |
run: | | |
cd software/python | |
black --check --skip-magic-trailing-comma . | |
- name: Run tests | |
run: | | |
cd software/python | |
pip install pytest==8.1.1 pytest-cov==5.0.0 | |
python3 -m pytest -v --cov --disable-warnings tests/ | |
flake8 --statistics |