Files
easy-graph--easy-graph/.github/workflows/test.yaml
T
2026-07-13 12:36:30 +08:00

47 lines
1.0 KiB
YAML

name: Test the package with pytest
on:
workflow_dispatch:
pull_request:
branches:
- pybind11
push:
branches:
- pybind11
jobs:
pytest:
name: Test with pytest
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
# ubuntu 22.04 has deprecated python 3.6
python-version: [ "3.8", "3.9", "3.10","3.11", "3.12"]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Installing dependencies
uses: py-actions/py-dependency-install@v4
with:
path: "requirements.txt"
- name: Installing test dependencies
run: |
pip install pytest
- name: Build and install package
run: |
pip install .
- name: Test with pytest
run: |
pytest easygraph --disable-warnings