Skip to content

Commit

Permalink
updated github action
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaron committed Dec 15, 2024
1 parent e1bb5d0 commit 42acc35
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python package

Expand All @@ -19,18 +18,22 @@ jobs:
python-version: ["3.10", "3.11"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
flake8 roboquant tests --count --statistics --exit-zero
- name: Run unittest
run: |
python -m unittest discover -s tests/unit
- name: checkout
uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v4

- name: Set up Python
run: uv python install

- name: Install the project
run: uv sync --all-extras --dev

- name: Run ruff checking
run: uvx ruff check

- name: Run unit tests
run: uv run python -m unittest discover -s tests/unit


0 comments on commit 42acc35

Please sign in to comment.