Skip to content

Commit

Permalink
test: change from Docker to Poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
kai0310 committed Sep 25, 2024
1 parent 69899ef commit 22b1d2c
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,25 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Docker Compose
run: |
docker-compose up -d
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.11'
architecture: 'x64'

- name: Install dependencies
run: pip install poetry

- name: Setup poetry project
run: poetry install

- name: Run tests (inside Docker)
run: |
docker-compose exec fastapi_server pytest /code/test/ --junitxml=/code/pytest_report.xml
pytest src/test --junitxml=pytest_report.xml
continue-on-error: true


- name: Install Node.js and xml2js
uses: actions/setup-node@v3
Expand Down

0 comments on commit 22b1d2c

Please sign in to comment.