Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PythonFZ committed Feb 7, 2025
1 parent c4bf7b6 commit 6c06968
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 27 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
name: Publish Docker image

on:
# push:
# branches:
# - dev
release:
types: [published]

Expand Down Expand Up @@ -49,11 +46,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: build frontend
run: |
npm install -g bun
Expand All @@ -62,5 +56,5 @@ jobs:
env:
PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
poetry config pypi-token.pypi $PYPI_TOKEN
poetry publish --build
uv build
uv publish --token $PYPI_TOKEN
24 changes: 7 additions & 17 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
fail-fast: false
matrix:
python-version:
- "3.13"
- "3.12"
- "3.11"
- "3.10"
Expand All @@ -37,29 +38,18 @@ jobs:

steps:
- uses: actions/checkout@v4
# - uses: oven-sh/setup-bun@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
- name: Install uv and set the python version
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
# - name: bun build install
# run: |
# cd app
# bun install
# bun vite build
- name: Install package
run: |
poetry install --no-interaction
uv sync --all-extras --dev
- name: Pytest
run: |
poetry run python --version
poetry run coverage run -m pytest -vv
poetry run coverage xml
uv run python --version
uv run coverage run -m pytest -vv
uv run coverage xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
Expand Down

0 comments on commit 6c06968

Please sign in to comment.