-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aada50a
commit 05e8288
Showing
21 changed files
with
146 additions
and
420 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,80 @@ | ||
name: Test latest | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
branches: [main] | ||
pull_request: | ||
branches: ['*'] | ||
|
||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.python-version }} ${{ matrix.os }} | ||
name: ${{ matrix.os }} ${{ matrix.python-version }} ${{ matrix.requirements }} | ||
runs-on: ${{ matrix.os }}-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu, macos, windows] | ||
python-version: ['3.8', '3.9', '3.10'] | ||
os: [ubuntu] | ||
python-version: ['3.8', '3.9', '3.10', '3.11'] | ||
requirements: [latest] | ||
include: | ||
# Test on macos and windows (first and last version of python only) | ||
- os: macos | ||
python-version: '3.8' | ||
requirements: latest | ||
- os: macos | ||
python-version: '3.11' | ||
requirements: latest | ||
- os: windows | ||
python-version: '3.8' | ||
requirements: latest | ||
- os: windows | ||
python-version: '3.11' | ||
requirements: latest | ||
# Test on minimal requirements | ||
- os: ubuntu | ||
python-version: '3.8' | ||
requirements: minimal | ||
- os: macos | ||
python-version: '3.8' | ||
requirements: minimal | ||
- os: windows | ||
python-version: '3.8' | ||
requirements: minimal | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Conda Environment | ||
uses: conda-incubator/setup-miniconda@v2 | ||
uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
miniforge-variant: Mambaforge | ||
miniforge-version: latest | ||
condarc-file: ci/condarc | ||
use-mamba: true | ||
python-version: ${{ matrix.python-version }} | ||
environment-file: ci/requirements.yml | ||
environment-file: ci/requirements-${{ matrix.requirements }}.yml | ||
activate-environment: pyscenarios | ||
|
||
- name: Show conda options | ||
run: conda config --show | ||
|
||
- name: conda info | ||
shell: bash -l {0} | ||
run: conda info | ||
|
||
- name: conda list | ||
shell: bash -l {0} | ||
run: conda list | ||
|
||
- name: Install | ||
shell: bash -l {0} | ||
run: python -m pip install --no-deps -e . | ||
|
||
- name: pytest | ||
shell: bash -l {0} | ||
run: | | ||
coverage run -m pytest -v | ||
coverage xml | ||
run: py.test --verbose --cov=pyscenarios --cov-report=xml | ||
|
||
- name: codecov.io | ||
uses: codecov/codecov-action@v1 | ||
uses: codecov/codecov-action@v3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.