Refactor import statements in speech_transcription.py for clarity #19
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: Tests and Linting | |
| on: | |
| push: | |
| branches: [ dev, main ] | |
| pull_request: | |
| branches: [ dev, main ] | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| env: | |
| DB_HOST: ${{ secrets.DB_HOST }} | |
| DB_PORT: ${{ secrets.DB_PORT }} | |
| DB_NAME: ${{ secrets.DB_NAME }} | |
| DB_USER: ${{ secrets.DB_USER }} | |
| DB_PASSWORD: ${{ secrets.DB_PASSWORD }} | |
| SECRET_KEY: ${{ secrets.SECRET_KEY }} | |
| SECRET_REFRESH_KEY: ${{ secrets.SECRET_REFRESH_KEY }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Run isort | |
| run: | | |
| isort --check-only --diff . | |
| - name: Run black | |
| run: | | |
| black --check . | |
| - name: Run ruff | |
| run: | | |
| ruff check . | |
| - name: Run tests | |
| run: | | |
| pytest |