fix test again :) #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |