-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from DunklesArchipel/fix-setup
Fix setup
- Loading branch information
Showing
4 changed files
with
55 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Test | ||
on: | ||
push: { branches: [ "main" ] } | ||
pull_request: { branches: [ "main" ] } | ||
|
||
concurrency: | ||
group: test-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
continue-on-error: ${{ matrix.remote-data == 'remote' }} | ||
strategy: | ||
matrix: | ||
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | ||
python: ["3.9", "3.10", "3.11"] | ||
remote-data: [""] | ||
include: | ||
- os: "ubuntu-latest" | ||
python: "3.11" | ||
# This leg of the tests runs doctests against the data that is | ||
# currently available on echemdb.org. This test might fail | ||
# when substantial changes have been introduced | ||
# with this run that have not been published on echemdb.org yet. | ||
remote-data: 'remote' | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
with: { submodules: recursive } | ||
- name: setup conda environment | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
python-version: "${{ matrix.python }}" | ||
miniforge-variant: Mambaforge | ||
- name: install dependencies | ||
shell: bash -l {0} | ||
run: | | ||
mamba env update --quiet -n test -f environment.yml | ||
conda list | ||
- name: install unitpackage | ||
shell: bash -l {0} | ||
run: | | ||
pip install -e . |
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ channels: | |
- conda-forge | ||
dependencies: | ||
- svgdigitizer>=0.11,<0.12 | ||
- python>=3.9 | ||
- pip | ||
- pip: | ||
- check-jsonschema |
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