--- name: Test code with pytest on: [ push, pull_request, workflow_dispatch ] env: SERVE_DOMAIN: https://localhost/ WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }} UPLOAD_FOLDER: ./Uploads jobs: build: strategy: fail-fast: false matrix: python-version: [ "3.9", "3.10" ] os: [ ubuntu-latest, macos-latest, windows-latest ] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 - name: Install ffmpeg uses: FedericoCarboni/setup-ffmpeg@v1 id: setup-ffmpeg - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Run image uses: abatilo/actions-poetry@v2 - name: Install dependencies run: poetry install - name: Run tests run: poetry run pytest