Skip to content

Commit

Permalink
🚧 Pytest CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Kajiih committed Nov 26, 2024
1 parent b150cca commit 2a92a68
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,17 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
version: "0.5.4"
- name: 🐍 Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# - name: πŸ’Ύ Setup pip cache
# uses: actions/cache@v4
# with:
# path: ${{ matrix.path }}
# key: ${{ runner.os }}-pip-${{ hashFiles('uv.lock') }}
# restore-keys: ${{ runner.os }}-pip-
- name: πŸ’Ύ Setup pip cache
uses: actions/cache@v4
with:
path: ${{ matrix.path }}
key: ${{ runner.os }}-pip-${{ hashFiles('uv.lock') }}
restore-keys: ${{ runner.os }}-pip-

- name: πŸ“₯ Install the project
run: uv sync --all-extras --dev
Expand All @@ -53,14 +54,15 @@ jobs:
uses: chartboost/ruff-action@v1
continue-on-error: true

# - name: πŸ“₯ Install pytest-action dependencies
# run: |
# uv pip install pytest-md pytest-emoji
# - name: πŸ§ͺ Run pytest @pavelzw
# uses: pavelzw/pytest-action@v2
# with:
# custom-arguments: "tests -rA --doctest-modules --cov=."
# continue-on-error: true
- name: πŸ“₯ Install pytest-action dependencies
run: |
pipx install pytest pytest-cov
uv pip install pytest-md pytest-emoji
- name: πŸ§ͺ Run pytest @pavelzw
uses: pavelzw/pytest-action@v2
with:
custom-arguments: "tests -rA --doctest-modules --cov=."
continue-on-error: true

- name: πŸ§ͺ Run Pytest with command
run: pytest tests -rA --doctest-modules --cov=.
Expand Down Expand Up @@ -95,5 +97,5 @@ jobs:

- name: πŸ—οΈ Build
run: |
# pipx install hatch
pipx install hatch
hatch build

0 comments on commit 2a92a68

Please sign in to comment.