fix n°3 #34
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 | |
# Trigger the workflow on pushes and pull requests to the 'main' branch | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
# Run tests on the latest Ubuntu | |
runs-on: ubuntu-latest | |
steps: | |
# Step 1: Checkout the code from the repository | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
# Step 2: Set up Python | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
# Step 3: Install dependencies | |
- name: Install build tools | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel setuptools_scm | |
- name: Install libbdsg | |
run: | | |
git clone --recursive https://github.com/vgteam/libbdsg.git | |
cd libbdsg | |
python -m build | |
pip install dist/*.whl | |
cd .. | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Run tests | |
run: pytest |