Skip to content

[#25] Get the code working on py3. #79

[#25] Get the code working on py3.

[#25] Get the code working on py3. #79

Workflow file for this run

name: GitHub-CI
on:
push:
branches: [ master ]
paths:
- '**.py'
pull_request:
branches: [ master ]
paths:
- '**.py'
jobs:
ubuntu:
# The type of runner that the job will run on
runs-on: ubuntu-22.04
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Cache build
uses: actions/cache@v2
with:
path: |
build-keycert
key: ${{ runner.os }}-${{ hashFiles('setup.py') }}
- name: Deps
run: ./pythia.sh deps
- name: Lint
run: ./pythia.sh lint
- name: Rename build to unicode
run: mv build-py3 build-py3-ț
- name: Test
run: ./brink.sh test
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
CHEVAH_BUILD: 'build-py3-ț'
- name: Rename build from unicode for cache
run: mv build-py3-ț build-py3
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Cache build
uses: actions/cache@v2
with:
path: |
build-keycert
key: ${{ runner.os }}-${{ hashFiles('setup.py') }}
- name: Deps
run: ./brink.sh deps
- name: Test
run: ./brink.sh test
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Cache build
uses: actions/cache@v2
with:
path: |
build-keycert
key: ${{ runner.os }}-${{ hashFiles('setup.py') }}
- name: Deps
run: sh ./brink.sh deps
- name: Test
run: sh ./brink.sh test
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
keys-interop:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
config:
- { test_type: load_dsa }
- { test_type: load_rsa }
- { test_type: load_eced }
- { test_type: generate }
steps:
- uses: actions/checkout@v2
- name: Cache build
uses: actions/cache@v2
with:
path: |
build-keycert
key: ${{ runner.os }}-${{ hashFiles('setup.py') }}
- name: Deps
run: |
sudo apt-get --quiet install putty-tools
./brink.sh deps
- name: Test
run: ./brink.sh test_interop_${{ matrix.config.test_type }}