Skip to content

refactor: apply uv run ruff check pystock/ --fix #13

refactor: apply uv run ruff check pystock/ --fix

refactor: apply uv run ruff check pystock/ --fix #13

Workflow file for this run

name: CI-CD
on:
push:
branches:
- develop
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.13] # Specify the Python versions you want to test
steps:
# Checkout code
- name: Check out repository
uses: actions/checkout@v2
# Set up Python environment
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install uv
uv sync
# Set PYTHONPATH
- name: Set PYTHONPATH
run: echo "PYTHONPATH=$PYTHONPATH:$(pwd)" >> $GITHUB_ENV
# Run tests
- name: Run tests with pytest
run: |
uv run pytest .
# Check code formatting
- name: Check code formatting
run: |
uv run ruff check pystock/