Skip to content

Commit

Permalink
Merge pull request #10 from RoyElkabetz/add-ci
Browse files Browse the repository at this point in the history
Add CI
  • Loading branch information
RoyElkabetz authored Jul 13, 2024
2 parents e40c197 + 3339179 commit da30206
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 8 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'

- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements-dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt --timeout=60 --retries=5
pip install scipy
pip install -e .
- name: Run tests
run: |
pytest --verbosity=1
3 changes: 3 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
numpy
ncon --global-option="--user"
pytest
8 changes: 0 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
cycler
fonttools
kiwisolver
matplotlib
numpy
packaging
Pillow
pyparsing
python-dateutil
scipy
six
tqdm
ncon --global-option="--user"

0 comments on commit da30206

Please sign in to comment.