Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CI Tests #21

Merged
merged 15 commits into from
May 21, 2024
60 changes: 60 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: build and test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.9]

runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: main

- name: Setup epam ssh key
uses: webfactory/[email protected]
with:
ssh-private-key: |
${{ secrets.SHMPLE_DEPLOY_PRIVATE_KEY }}
${{ secrets.EPAM_DEPLOY_PRIVATE_KEY }}

- name: Clone Epam
shell: bash -l {0}
run: |
git clone [email protected]:matsengrp/epam.git

- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: '1.5.6-0' # any version from https://github.com/mamba-org/micromamba-releases
environment-name: epam
create-args: >-
python=${{ matrix.python-version }}
datrie
init-shell: bash
cache-environment: false
post-cleanup: 'none'

- name: Install
shell: bash -l {0}
run: |
export GIT_CLONE_PROTECTION_ACTIVE=false
cd epam
make install
cd ../main
pip install .

- name: Test
shell: bash -l {0}
run: |
cd main
make test