Bump asteval from 1.0.5 to 1.0.6 #194
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
# This workflow will install Python dependencies, run tests, type checking with mypy and lint with Ruff and Poetry. | |
# It can be tested locally using https://github.com/nektos/act with the command `act push --container-architecture linux/amd64 -j build` | |
name: Python Tests | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive # Ensures submodules are fetched | |
- name: Install OpenCL (Qrack dependency) | |
run: | | |
sudo apt update | |
sudo apt install -y ocl-icd-opencl-dev | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install Poetry | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
- name: Initialize and update submodules | |
run: | | |
git submodule update --init --recursive | |
- name: Install dependencies | |
run: | | |
poetry install --no-root | |
- name: Lint with Ruff | |
run: | | |
poetry run ruff check | |
- name: Type checking with MyPy | |
run: | | |
poetry run mypy | |
- name: Run tests with pytest | |
run: | | |
poetry run pytest | |