ci: remove main branch trigger from backend test workflow #108
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: Test Backend | |
| on: | |
| push: | |
| branches: | |
| pull_request: | |
| # https://github.com/actions/runner-images/issues/6185 | |
| env: | |
| PYTHON_KEYRING_BACKEND: keyring.backends.null.Keyring | |
| jobs: | |
| test_backend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install Poetry | |
| run: pipx install poetry==1.2.1 | |
| - name: Get python version | |
| run: | | |
| python_version=$(grep -oP 'python \K(.*)' .tool-versions) | |
| echo "PYTHON_VERSION=${python_version}" >> $GITHUB_ENV | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| cache: poetry | |
| - name: Install Taglib | |
| run: sudo apt-get install -y libtag1-dev | |
| - name: Install Dependencies | |
| run: poetry install | |
| - name: Run Tests | |
| run: poetry run pytest |