-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (36 loc) · 962 Bytes
/
Copy pathpython-magic.yml
File metadata and controls
49 lines (36 loc) · 962 Bytes
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
name: Python Magic
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: python-magic-${{ github.ref }}
cancel-in-progress: true
env:
BUN_VERSION: 1.3.11
jobs:
python:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: bun install --frozen-lockfile
- run: python -m pip install --upgrade pip
- run: python -m pip install -e 'python/datamog-magic[test]'
- run: python -m pytest python/datamog-magic
env:
DATAMOG_REPO: ${{ github.workspace }}