-
Notifications
You must be signed in to change notification settings - Fork 13
56 lines (49 loc) · 1.3 KB
/
ci_workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
### A CI workflow template that runs linting and python testing
### TODO: Modify as needed or as desired.
name: Test tap-facebook
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches: [main]
workflow_dispatch:
inputs: {}
schedule:
- cron: '0 12 * * *' # Run every day at 12:00 UTC
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
FORCE_COLOR: "1"
permissions:
contents: read
jobs:
pytest:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
strategy:
fail-fast: false
max-parallel: 2
matrix:
python-version:
- "3.13"
- "3.12"
- "3.11"
- "3.10"
- "3.9"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: astral-sh/setup-uv@v3
with:
version: ">=0.5.0"
- name: Test with pytest
env:
TAP_FACEBOOK_ACCESS_TOKEN: ${{ secrets.tap_facebook_access_token }}
TAP_FACEBOOK_ACCOUNT_ID: ${{ secrets.tap_facebook_account_id }}
TAP_FACEBOOK_START_DATE: ${{ secrets.tap_facebook_start_date }}
run: |
uvx --with=tox-uv tox -e ${{ matrix.python-version }}