Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,25 @@ jobs:
with:
persist-credentials: true

- name: Setup Python 3.8
- name: Setup Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9

- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-py3.8-${{ hashFiles('requirements.txt') }}
key: ${{ runner.os }}-pip-py3.9-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-py3.8-
${{ runner.os }}-pip-py3.9-
${{ runner.os }}-pip-

- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
grep "numpy" requirements.txt | xargs -I {} pip install "{}"
pip install -r requirements.txt
pip install -r dev_requirements.txt

- name: Lint with flake8
run: |
Expand All @@ -57,7 +57,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.8]
python-version: [3.9, '3.10']
include:
- os: ubuntu-latest
pippath: ~/.cache/pip
Expand Down Expand Up @@ -109,17 +109,17 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
grep "numpy" requirements.txt | xargs -I {} pip install "{}"
pip install -r requirements.txt
pip install -r dev_requirements.txt
pip install codecov pytest-cov

- name: Testing
- name: Coverage testing
continue-on-error: true
run: pytest --cov

- name: Upload coverage
continue-on-error: true
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v2
with:
env_vars: OS,PYTHON

Expand Down Expand Up @@ -148,25 +148,25 @@ jobs:
- name: Git LFS Pull
run: git lfs pull

- name: Setup Python 3.8
- name: Setup Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9

- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-py3.8-${{ hashFiles('requirements.txt') }}
key: ${{ runner.os }}-pip-py3.9-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-py3.8-
${{ runner.os }}-pip-py3.9-
${{ runner.os }}-pip-

- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
grep "numpy" requirements.txt | xargs -I {} pip install "{}"
pip install -r requirements.txt
pip install -r dev_requirements.txt

- name: Update VERSION file
run: python -c "from flows import version; version.update_release_version();"
Expand Down
5 changes: 5 additions & 0 deletions flows/dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pytest
flake8
flake8-tabs >= 2.3.2
flake8-builtins
flake8-logging-format
15 changes: 5 additions & 10 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
pytest
flake8
flake8-tabs >= 2.3.2
flake8-builtins
flake8-logging-format
numpy >= 1.16
scipy >= 1.5.4
astropy == 4.1
photutils == 1.1.0; python_version >= '3.7'
Bottleneck == 1.3.2
matplotlib == 3.3.1
mplcursors == 0.3
astropy >= 5.0.1
photutils == 1.1.0
Bottleneck >= 1.3.4
matplotlib >= 3.3.1
mplcursors >= 0.3
seaborn
pandas
requests
Expand Down