Skip to content

update github actions #100

update github actions

update github actions #100

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: CI Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Install uv and set the python version to ${{ matrix.python-version }}
uses: astral-sh/setup-uv@v6
with:
version: "0.8.17"
enable-cache: true
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
uv sync --locked --all-extras --dev
- name: Lint with ruff
working-directory: ./yfpy
run: make lint
- name: Security check with bandit
working-directory: ./yfpy
run: make secure
# - name: Run tests with pytest
# working-directory: ./yfpy
# run: make test_code