-
Notifications
You must be signed in to change notification settings - Fork 40
64 lines (62 loc) · 1.84 KB
/
install.yaml
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
57
58
59
60
61
62
63
64
# This workflow runs tests on pull requests.
name: venv-tests
on:
pull_request:
push:
# Run once a day
schedule:
- cron: '0 0 * * *'
jobs:
tests:
runs-on: ${{ matrix.platform.os }}
strategy:
fail-fast: true
matrix:
platform:
- os: ubuntu-latest
architecture: x64
- os: windows-latest
architecture: x64
# x86 builds are only meaningful for Windows
- os: windows-latest
architecture: x86
- os: macos-latest
architecture: x64
python:
- "3.12"
category:
- local
# These require credentials.
# Enable them once we sort how to provide them.
# - integ
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
architecture: ${{ matrix.platform.architecture }}
- name: MacOS and Linux setup venv and package
run: |
python -m pip install --upgrade pip
python -m venv env
source env/bin/activate
python -m pip install aws-encryption-sdk-cli
if: matrix.platform.os != 'windows-latest'
- name: Windows setup venv and package
run: |
python -m pip install --upgrade pip
python -m venv env
.\env\Scripts\activate
python -m pip install aws-encryption-sdk-cli
if: matrix.platform.os == 'windows-latest'
- name: Windows run test
run: |
.\env\Scripts\activate
(Get-Command python).Path
aws-encryption-cli --version
if: matrix.platform.os == 'windows-latest'
- name: MacOS Linux run test
run: |
source env/bin/activate
aws-encryption-cli --version
if: matrix.platform.os != 'windows-latest'