Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit ae8a4e1

Browse files
authored
Merge pull request #110 from seamapi/fix-ci-build
2 parents 0b88776 + 2c2bd87 commit ae8a4e1

File tree

4 files changed

+66
-3
lines changed

4 files changed

+66
-3
lines changed

.github/actions/setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ inputs:
66
python_version:
77
description: The Python version.
88
required: false
9-
default: '3.11'
9+
default: '3.8'
1010
poetry_version:
1111
description: The Poetry version.
1212
required: false

.github/workflows/_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
description: The Python version.
99
type: string
1010
required: false
11-
default: '3.11'
11+
default: '3.8'
1212
runs_on:
1313
description: The runner environment.
1414
type: string

.github/workflows/check.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
name: Check
3+
4+
on:
5+
push:
6+
branches:
7+
- '**'
8+
9+
jobs:
10+
build:
11+
name: Build (Python ${{ matrix.python }} on ${{ matrix.os_name }})
12+
uses: ./.github/workflows/_build.yml
13+
with:
14+
python_version: ${{ matrix.python }}
15+
runs_on: ${{ matrix.os }}
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
os:
20+
- ubuntu-latest
21+
include:
22+
- os: ubuntu-latest
23+
os_name: Linux
24+
install:
25+
name: Install (Python ${{ matrix.python }} on ${{ matrix.os_name }})
26+
runs-on: ${{ matrix.os }}
27+
timeout-minutes: 30
28+
needs: build
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
os:
33+
- ubuntu-latest
34+
python:
35+
- '3.8'
36+
include:
37+
- os: ubuntu-latest
38+
os_name: Linux
39+
steps:
40+
- name: Setup Python
41+
uses: actions/setup-python@v4
42+
with:
43+
python-version: ${{ matrix.python }}
44+
- name: Download artifact
45+
uses: actions/download-artifact@v3
46+
with:
47+
name: ${{ needs.build.outputs.artifact_name }}
48+
path: .
49+
- name: Find wheels
50+
uses: tj-actions/glob@v16
51+
id: wheels
52+
with:
53+
files: '*.whl'
54+
- name: Install
55+
run: pip install ${{ steps.wheels.outputs.paths }}
56+
- name: Create main.py
57+
uses: DamianReeves/[email protected]
58+
with:
59+
write-mode: overwrite
60+
path: main.py
61+
contents: |
62+
import seamapi
63+
- name: Run
64+
run: python main.py

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Generated by seam-plop
22
name: Python Test
33
on:
4-
push:
54
workflow_dispatch:
65
inputs:
76
sdkSha:

0 commit comments

Comments
 (0)