Skip to content

fix test again :)

fix test again :) #12

Workflow file for this run

name: Testing cloudcasting_backend
on: push
jobs:
lint:
strategy:
matrix:
cmd:
- black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'poetry'
- name: Install deps
run: poetry install --no-root
- name: Run lint check
run: poetry run pre-commit run -a ${{ matrix.cmd }}
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create .env
run: touch .env
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Update docker-compose
uses: docker/setup-buildx-action@v3
- name: Install Docker Compose
run: |
sudo apt-get update
sudo apt-get install -y docker-compose
- name: run tests
run: docker-compose run --rm api pytest -vv