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
2 changes: 1 addition & 1 deletion .github/workflows/markdown_link_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Check Markdown links
# See https://github.com/UmbrellaDocs/linkspector

on:
push:
# push:
schedule:
# Run every day at 5:00 UTC
- cron: "0 5 * * *"
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,24 @@ on:

jobs:
run-tests:
name: ${{ matrix.os }}, ${{ matrix.python-version }}
name: ${{ matrix.experimental && '⚠️ ' || '' }}${{ matrix.os }}, ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.10', '3.11', '3.12']
experimental: [false]
include:
- os: ubuntu-latest
python-version: '3.13'
experimental: true
- os: macos-latest
python-version: '3.13'
experimental: true
- os: windows-latest
python-version: '3.13'
experimental: true

steps:
- uses: actions/checkout@v5
Expand All @@ -42,6 +53,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install dependencies with Poetry
continue-on-error: ${{ matrix.experimental }}
run: |
poetry install --with test --all-extras
poetry add git+https://github.com/AstarVienna/ScopeSim_Data.git
Expand All @@ -51,6 +63,7 @@ jobs:
run: poetry run python -V >> "$GITHUB_STEP_SUMMARY"

- name: Run Pytest with Poetry
continue-on-error: ${{ matrix.experimental }}
run: poetry run pytest -m "not webtest" --cov --cov-report=xml

- name: Upload coverage reports to Codecov
Expand Down
16 changes: 15 additions & 1 deletion .github/workflows/updated_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,24 @@ on:

jobs:
run-tests:
name: ${{ matrix.os }}, ${{ matrix.python-version }}
name: ${{ matrix.experimental && '⚠️ ' || '' }}${{ matrix.os }}, ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.10', '3.12']
experimental: [false]
include:
- os: ubuntu-latest
python-version: '3.13'
experimental: true
- os: macos-latest
python-version: '3.13'
experimental: true
- os: windows-latest
python-version: '3.13'
experimental: true

steps:
- uses: actions/checkout@v5
Expand All @@ -38,6 +49,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
continue-on-error: ${{ matrix.experimental }}
shell: bash
run: |
poetry lock
Expand All @@ -49,9 +61,11 @@ jobs:
run: poetry run python -V >> "$GITHUB_STEP_SUMMARY"

- name: Update dependencies
continue-on-error: ${{ matrix.experimental }}
shell: bash
run: poetry update | tee -a $GITHUB_STEP_SUMMARY

- name: Run Pytest
continue-on-error: ${{ matrix.experimental }}
shell: bash
run: poetry run pytest -m "not webtest" --cov --cov-report=xml
9 changes: 8 additions & 1 deletion .github/workflows/webtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,17 @@ jobs:
run-tests:
# The web tests are run with a limited matrix, because they retrieve data
# from the internet and therefor run into rate limits with the full matrix.
name: ubuntu-latest, ${{ matrix.python-version }}
name: ${{ matrix.experimental && '⚠️ ' || '' }}ubuntu-latest, ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.12']
experimental: [false]
include:
- os: ubuntu-latest
python-version: '3.13'
experimental: true

steps:
- uses: actions/checkout@v5
Expand All @@ -35,6 +40,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install dependencies with Poetry
continue-on-error: ${{ matrix.experimental }}
run: |
poetry install --with test --all-extras
poetry add git+https://github.com/AstarVienna/ScopeSim_Data.git
Expand All @@ -44,6 +50,7 @@ jobs:
run: poetry run python -V >> "$GITHUB_STEP_SUMMARY"

- name: Run Pytest with Poetry
continue-on-error: ${{ matrix.experimental }}
run: poetry run pytest -m "webtest" --cov --cov-report=xml

- name: Upload coverage reports to Codecov
Expand Down
99 changes: 59 additions & 40 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "astarsample"
version = "0.4a0"
version = "0.4a1"
description = "Example project"
readme = "README.md"
license = "GPL-3.0-or-later"
Expand All @@ -11,8 +11,8 @@ packages = [{include = "sample"}]
[tool.poetry.dependencies]
# When updating the version, also update the versions in .github/workflows/*
# and also re-run "poetry lock --no-update" and commit the changed lock file
python = ">=3.10, <3.13"
numpy = "^1.26.4"
python = ">=3.10, <3.14"
numpy = ">=2.1.0,<2.3.0"

[tool.poetry.group.test.dependencies]
pytest = "^8.3.5"
Expand Down
Loading