Skip to content

[brief] Allow pre-release versions to skip the compatibility check. #77

[brief] Allow pre-release versions to skip the compatibility check.

[brief] Allow pre-release versions to skip the compatibility check. #77

Workflow file for this run

name: "Tests"
on:
push:
branches: [ master ]
paths-ignore:
- 'README.md'
- 'README.rst'
- '.pre-commit-config.yaml'
- 'data/**'
- "LICENSE"
pull_request:
branches: [ master ]
paths-ignore:
- 'README.md'
- 'LICENSE'
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
id: setup_python
with:
python-version: "3.11"
- name: Cache virtualenv
uses: actions/cache@v4
with:
key: venv-${{ runner.os }}-${{ steps.setup_python.outputs.python-version}}-${{ hashFiles('requirements/ci.txt') }}
path: venv
- name: Install dependencies
run: |
python -m venv venv
source venv/bin/activate
python -m pip install numpy==1.26.4
python -m pip install -r requirements/ci.txt
echo "$VIRTUAL_ENV/bin" >> $GITHUB_PATH
echo "VIRTUAL_ENV=$VIRTUAL_ENV" >> $GITHUB_ENV
- name: Install Helios
shell: bash
run: |
pip install .
- name: Ruff
run: |
ruff check src/helios
ruff check test
ruff check examples/cifar10
- name: Mypy
run: |
mypy src/helios
mypy test
mypy examples/cifar10
- name: Pytest
run: |
python -m pytest