venv-tests #1116
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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.x | |
category: | |
- local | |
# These require credentials. | |
# Enable them once we sort how to provide them. | |
# - integ | |
steps: | |
- uses: actions/checkout@v3 | |
- 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' |