Update CI test and add Python version file #1407
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: CI Test | |
on: [push, pull_request] | |
jobs: | |
build-linux: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install uv | |
uv pip install -r requirements.txt | |
- name: Install CNApy | |
run: | | |
python setup.py install | |
- name: Test CNApy | |
run: | | |
pytest -v ./cnapy/tests/test.py | |
build-windows: | |
runs-on: "windows-latest" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install uv | |
uv pip install -r requirements.txt | |
- name: Install CNApy | |
run: | | |
python setup.py install | |
- name: Test CNApy | |
run: | | |
pytest -v ./cnapy/tests/test.py | |
build-macos: | |
runs-on: "macos-latest" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install uv | |
uv pip install -r requirements.txt | |
- name: Install CNApy | |
run: | | |
python setup.py install | |
- name: Test CNApy | |
run: | | |
pytest -v ./cnapy/tests/test.py |