Skip to content
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
24 changes: 12 additions & 12 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[run]
branch = True
source = aeolis

[report]
exclude_lines =
if self.debug:
pragma: no cover
raise NotImplementedError
if __name__ == .__main__.:
ignore_errors = True
omit =
[run]
branch = True
source = aeolis
[report]
exclude_lines =
if self.debug:
pragma: no cover
raise NotImplementedError
if __name__ == .__main__.:
ignore_errors = True
omit =
tests/*
20 changes: 10 additions & 10 deletions .github/ISSUE_TEMPLATE/report-issue.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
name: Report issue
about: Report an issue with AeoLiS
title: ''
labels: ''
assignees: ''

---


---
name: Report issue
about: Report an issue with AeoLiS
title: ''
labels: ''
assignees: ''
---
44 changes: 22 additions & 22 deletions .github/ISSUE_TEMPLATE/test-scenario-template.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
---
name: Test scenario template
about: Describe test scenarios and case for source code
title: 'Test: [NAME OF TEST SCENARIO]'
labels: test
assignees: ''

---

We need to implement tests for the following scenario:

## Description
[ A description of what should be tested ]
## Code Reference
[ Permalink to code for which the test is required ]
## Test Cases
### Case: [ Description of test case that is part of the scenario. Repeat for each test case]
- **Preconditions:** [ conditions that need to meet before executing the test case. Mention if any preconditions are available for each test case]
- **Test Steps:** [ To execute test cases, you need to perform some actions. Mention all the test steps in detail and in the order of how they could be executed from the end-user’s perspective ]
- **Test Data:** [ if required, data to execute the test cases ]
- **Expected Result:** [ The result we expect once the test cases are executed. ]
- **Postcondition:** [ conditions that need to achieve when the test case was successfully executed ]
---
name: Test scenario template
about: Describe test scenarios and case for source code
title: 'Test: [NAME OF TEST SCENARIO]'
labels: test
assignees: ''
---
We need to implement tests for the following scenario:
## Description
[ A description of what should be tested ]
## Code Reference
[ Permalink to code for which the test is required ]
## Test Cases
### Case: [ Description of test case that is part of the scenario. Repeat for each test case]
- **Preconditions:** [ conditions that need to meet before executing the test case. Mention if any preconditions are available for each test case]
- **Test Steps:** [ To execute test cases, you need to perform some actions. Mention all the test steps in detail and in the order of how they could be executed from the end-user’s perspective ]
- **Test Data:** [ if required, data to execute the test cases ]
- **Expected Result:** [ The result we expect once the test cases are executed. ]
- **Postcondition:** [ conditions that need to achieve when the test case was successfully executed ]
90 changes: 45 additions & 45 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload PyPI Release

on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Test package import
run: |
python -m venv venv-aeolis
source venv-aeolis/bin/activate
pip install dist/aeolis-*.whl
python -c "from aeolis import model; print('Success!')"
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Upload PyPI Release
on:
release:
types: [published]
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Test package import
run: |
python -m venv venv-aeolis
source venv-aeolis/bin/activate
pip install dist/aeolis-*.whl
python -c "from aeolis import model; print('Success!')"
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
78 changes: 39 additions & 39 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Run-tests

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest
timeout-minutes: 15

strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Run-tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
pytest
Loading