Skip to content

Commit

Permalink
Merge pull request #249 from AstarVienna/dev_master
Browse files Browse the repository at this point in the history
Release v0.6.0
  • Loading branch information
hugobuddel authored Jul 10, 2023
2 parents 2fd61cf + 610bc25 commit 6149822
Show file tree
Hide file tree
Showing 107 changed files with 4,212 additions and 3,615 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/markdown_link_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Check Markdown links

on:
push:
schedule:
- # Run every day at 5:00 UTC
- cron: "0 5 * * *"

jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: gaurav-nelson/github-action-markdown-link-check@v1
27 changes: 27 additions & 0 deletions .github/workflows/minimumdependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Minimum Dependencies
# Installs the minimum versions of the dependencies and runs the tests.
# This test will lower the chance that users botch their installation by
# only upgrading this project but not the dependencies.

on:
push:
branches:
- master
- dev_master
- dev_spectroscopy
pull_request:
branches:
- master
- dev_master
- dev_spectroscopy

# Allows you to run this workflow manually from the Actions tab.
workflow_dispatch:

schedule:
- # Run every day at 5:00 UTC.
- cron: "0 5 * * *"

jobs:
call-minimum-dependencies:
uses: AstarVienna/DevOps/.github/workflows/minimumdependencies.yml@master
49 changes: 49 additions & 0 deletions .github/workflows/notebooks_with_irdb_clone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Notebooks with IRDB git clone

on:
push:
branches:
- master
- dev_master
- dev_spectroscopy
pull_request:
branches:
- master
- dev_master
- dev_spectroscopy

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Run every night
schedule:
- cron: "0 2 * * *"


jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Run only on a minimal subset of the matrix, as this is ran on many
# commits.
os: [ubuntu-latest]
python-version: ['3.11']

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# Install this version of ScopeSim. Otherwise the PyPI version of
# ScopeSim will be installed when the test-requriments
# are installed, because ScopeSim is a dependency of
# ScopeSim_Templates.
pip install .
pip install .[dev,test]
- name: Run notebooks
run: ./runnotebooks.sh --checkout-irdb --delete
41 changes: 41 additions & 0 deletions .github/workflows/notebooks_with_irdb_download.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Notebooks with IRDB download

on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Run every night
schedule:
- cron: "0 3 * * *"


jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Run all operating systems, because this is the first interaction
# that users have with ScopeSim / IRDB.
# However, only use minimum and maximum supported Python version,
# as the IRDB download often fails.
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.8', '3.11']

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# Install this version of ScopeSim. Otherwise the PyPI version of
# ScopeSim will be installed when the test-requriments
# are installed, because ScopeSim is a dependency of
# ScopeSim_Templates.
pip install .
pip install .[dev,test]
- name: Run notebooks
# No --checkout-irdb to download the IRDB as a normal end user would.
run: ./runnotebooks.sh --delete
28 changes: 2 additions & 26 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,5 @@ on:
workflow_dispatch:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['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: Install dependencies
run: |
python -m pip install --upgrade pip
# Install this version of ScopeSim. Otherwise the PyPI version of
# ScopeSim will be installed when the github_actions requirements
# are installed, because ScopeSim is a dependency of
# ScopeSim_Templates.
pip install .
pip install -r requirements.github_actions.txt
- name: Run Pytest
run: pytest
- name: Run notebooks
run: ./runnotebooks.sh
call-tests:
uses: AstarVienna/DevOps/.github/workflows/tests.yml@master
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,10 @@ dist
*TEST.fits
*temp*
*speclecado*.fits

# Spyder project settings
.spyderproject
.spyproject

# Pylint
.pylint.d/
10 changes: 6 additions & 4 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ build:
python: "3.9"

sphinx:
configuration: docs/source/conf.py
configuration: docs/source/conf.py

python:
install:
- requirements: requirements.readthedocs.txt
- path: .
install:
- method: pip
path: .
extra_requirements:
- docs

# If using Sphinx, optionally build your docs in additional formats such as PDF
# formats: [] # ignore htmlzip. html is always run
11 changes: 0 additions & 11 deletions LICENCE

This file was deleted.

Loading

0 comments on commit 6149822

Please sign in to comment.