Skip to content

Commit

Permalink
Merge branch 'main' into sdk_update
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Jul 5, 2024
2 parents 0a5216d + 86ead21 commit ca9a79b
Show file tree
Hide file tree
Showing 5 changed files with 369 additions and 342 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/test_tap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@ name: Test tap-github
on:
# Run on all pull requests and on pushes to main.
pull_request:
paths:
- .github/workflows/test_tap.yml
- poetry.lock
- pyproject.toml
- 'tap_github/**'
push:
branches:
- main
paths:
- .github/workflows/test_tap.yml
- poetry.lock
- pyproject.toml
- 'tap_github/**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -20,20 +30,24 @@ jobs:
ORG_LEVEL_TOKEN: ${{secrets.ORG_LEVEL_TOKEN}}
strategy:
matrix:
python-version: [3.11, "3.10", 3.9, 3.8, 3.7]
python-version:
- "3.11"
- "3.10"
- "3.9"
- "3.8"
# run the matrix jobs one after the other so they can benefit from caching
max-parallel: 1

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get Date
id: get-date
run: |
echo "date=$(/bin/date -u "+%Y%m%d")" >> $GITHUB_OUTPUT
shell: bash

- name: Cache github API responses
uses: actions/cache@v3
uses: actions/cache@v4
with:
# must match the path in tests/__init__.py
path: '.cache/api_calls_tests_cache.sqlite'
Expand All @@ -43,19 +57,19 @@ jobs:
key: api-cache-v4-${{ steps.get-date.outputs.date }}

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
# Version of Poetry to use
version: 1.2.2
version: 1.8.3
virtualenvs-create: true
virtualenvs-in-project: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: .venv
key: venv-4-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}-${{ matrix.python-version }}
Expand Down
Loading

0 comments on commit ca9a79b

Please sign in to comment.