Skip to content

Merge pull request #198 from ninoseki/update-deps #576

Merge pull request #198 from ninoseki/update-deps

Merge pull request #198 from ninoseki/update-deps #576

Workflow file for this run

name: Python CI
on: ["pull_request", "push"]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
poetry-version: [1.7.1]
steps:
- uses: actions/checkout@v4
- name: Setup poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Install dependencies
run: poetry install
- name: Run tests
run: |
mkdir -p frontend/dist/assets
poetry run pytest -v --cov=app --cov-report=term-missing
- name: Coveralls
env:
COVERALLS_PARALLEL: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: poetry run coveralls --service=github
coveralls:
name: Indicate completion to coveralls.io
needs: test
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Finished
run: |
pip3 install --upgrade coveralls
coveralls --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}