Skip to content

Commit

Permalink
add tests workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
willdumm committed May 21, 2024
1 parent 8f0cbd9 commit 528690c
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: build and test

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

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]

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.EPAM_DEPLOY_PRIVATE_KEY }}

- name: Checkout Epam repo
uses: actions/checkout@v4
with:
repository: matsengrp/epam
path: epam

- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: '1.5.6-0' # any version from https://github.com/mamba-org/micromamba-releases
environment-file: epam/environment.yml
init-shell: bash
cache-environment: false
post-cleanup: 'all'

- name: Install and Test
shell: bash -l {0}
run: |
cd main
pip install .
make test

0 comments on commit 528690c

Please sign in to comment.