Skip to content

Commit

Permalink
update deploy github action
Browse files Browse the repository at this point in the history
  • Loading branch information
daya0576 committed Dec 14, 2024
1 parent 06a9428 commit 2508e00
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/fly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,18 @@ on:

jobs:
pre-deploy-test:
name: Unit tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- name: Install the latest version of uv and set the python version
uses: astral-sh/setup-uv@v4
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install --no-interaction --no-ansi
- name: Test with pytest
run: poetry run pytest tests
python-version: ${{ matrix.python-version }}
- name: Test with python ${{ matrix.python-version }}
run: uv run --frozen pytest

deploy:
name: Deploy app
Expand Down

0 comments on commit 2508e00

Please sign in to comment.