Skip to content

Commit

Permalink
Add github tests
Browse files Browse the repository at this point in the history
  • Loading branch information
prihoda committed Sep 20, 2021
1 parent c836f08 commit 20e8022
Show file tree
Hide file tree
Showing 2 changed files with 9,408 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build & Test

on:
push:
schedule:
- cron: '0 3 * * 1'


jobs:
build-linux:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 5
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.6', '3.7', '3.8', '3.9']

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
make install
pip install pytest pytest-mock
- name: Test with pytest
run: |
make test
Loading

0 comments on commit 20e8022

Please sign in to comment.