From 2c0fc0b7dfc03c1bc5d27b4664dfb9b4de749d5b Mon Sep 17 00:00:00 2001 From: Reuben Frankel Date: Tue, 2 Jan 2024 02:00:56 +0000 Subject: [PATCH] Add GitHub configuration --- .github/dependabot.yml | 26 ++++++++++++++++++++++++++ .github/workflows/test.yml | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..933e6b1 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,26 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: pip + directory: "/" + schedule: + interval: "daily" + commit-message: + prefix: "chore(deps): " + prefix-development: "chore(deps-dev): " + - package-ecosystem: pip + directory: "/.github/workflows" + schedule: + interval: daily + commit-message: + prefix: "ci: " + - package-ecosystem: github-actions + directory: "/" + schedule: + interval: "weekly" + commit-message: + prefix: "ci: " diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..49ce19c --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,33 @@ +### A CI workflow template that runs linting and python testing +### TODO: Modify as needed or as desired. + +name: Test tap-spotify + +on: [push] + +jobs: + pytest: + runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + TAP_SPOTIFY_CLIENT_ID: ${{secrets.TAP_SPOTIFY_CLIENT_ID}} + TAP_SPOTIFY_CLIENT_SECRET: ${{secrets.TAP_SPOTIFY_CLIENT_SECRET}} + TAP_SPOTIFY_REFRESH_TOKEN: ${{secrets.TAP_SPOTIFY_REFRESH_TOKEN}} + strategy: + matrix: + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install Poetry + run: | + pip install poetry + - name: Install dependencies + run: | + poetry install + - name: Test with pytest + run: | + poetry run pytest