Skip to content

Commit

Permalink
Add CI Tests (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
willdumm authored May 21, 2024
1 parent 8f0cbd9 commit 5bfc067
Showing 1 changed file with 60 additions and 0 deletions.
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

0 comments on commit 5bfc067

Please sign in to comment.