Add CI Tests #12
Workflow file for this run
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
name: build and test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-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.EPAM_DEPLOY_PRIVATE_KEY }} | |
${{ secrets.SHMPLE_DEPLOY_PRIVATE_KEY }} | |
- name: Clone Epam | |
shell: bash -l {0} | |
run: | | |
git clone [email protected]:matsengrp/epam.git | |
git clone [email protected]:matsengrp/shmple.git | |
cd shmple | |
git checkout f1f3db0b67351bae7c23b96197b58c7674bb95bb | |
- 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 | |
pytest | |
init-shell: bash | |
cache-environment: false | |
post-cleanup: 'none' | |
- name: Install | |
shell: bash -l {0} | |
run: | | |
cd epam | |
make install | |
cd ../main | |
pip install . | |
- name: Test | |
shell: bash -l {0} | |
run: | | |
cd main | |
make test |