Skip to content

Merge pull request #5 from First-Iraqi-Bank/FIBAS-1460-add-redirect-u… #22

Merge pull request #5 from First-Iraqi-Bank/FIBAS-1460-add-redirect-u…

Merge pull request #5 from First-Iraqi-Bank/FIBAS-1460-add-redirect-u… #22

Workflow file for this run

name: Python CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
# Step 1: Checkout the code
- name: Checkout code
uses: actions/checkout@v3
# Step 2: Set up Python environment
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# Step 3: Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# Step 3.1: Install your package
- name: Install the SDK package
run: |
pip install -e .
# Step 4: Run the custom test script
# Find all tests in the tests/ directory and run them
- name: Run tests pytest
run: |
pytest tests/ --cov=src/ --cov-report=xml
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}