-
Notifications
You must be signed in to change notification settings - Fork 247
38 lines (36 loc) · 1.07 KB
/
Copy pathcontinuous-integration.yml
File metadata and controls
38 lines (36 loc) · 1.07 KB
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
name: Continuous Integration
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
continuous-integration:
if: >
(github.event_name != 'pull_request' || github.event.pull_request.draft == false) &&
!contains(github.event.head_commit.message || '', '[SKIP-CI]') &&
!contains(github.event.pull_request.title || '', '[SKIP-CI]')
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v6
with:
python-version: '3.13'
- name: Configure PythonKit
shell: bash
run: |
python_library="$(find -L "$pythonLocation" \( -name 'libpython3.13*.dylib' -o -name 'libpython3.13*.so' \) -print -quit)"
test -n "$python_library"
echo "PYTHON_LIBRARY=$python_library" >> "$GITHUB_ENV"
- name: Test
run: swift test --enable-test-discovery
if: runner.os != 'Windows'
env:
PYTHON_LOADER_LOGGING: TRUE