Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add manual trigger for test install CI #50

Merged
merged 10 commits into from
Feb 7, 2024
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
34 changes: 32 additions & 2 deletions .github/workflows/install.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: Install
name: Test installation

on:
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 0 * * 3'

jobs:
test-pypi-install:
name: Test PyPI install (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: "${{ matrix.os }}"
strategy:
fail-fast: false
Expand All @@ -25,6 +27,34 @@ jobs:
pip install openscm-units
- name: Checkout repository
uses: actions/checkout@v3
- name: Test installation (${{ matrix.os }} Python ${{ matrix.python-version }})
- name: Test installation
run: |
which python
python scripts/test-install.py

test-micromamba-installation:
name: Test (micro)mamba install (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: "${{ matrix.os }}"
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: [ "3.9", "3.10", "3.11" ]

steps:
- name: Setup (micro)mamba and install package
uses: mamba-org/setup-micromamba@v1
with:
environment-name: test-mamba-install
create-args: >-
python=${{ matrix.python-version }}
-c conda-forge
openscm-units
init-shell: bash
- name: Checkout repository
uses: actions/checkout@v3
- name: Test installation
shell: bash -leo pipefail {0}
run: |
which python
python scripts/test-install.py
35 changes: 0 additions & 35 deletions .github/workflows/test-conda-install.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/test-pypi-install.yml

This file was deleted.

12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ https://myst-parser.readthedocs.io/en/latest/syntax/organising_content.html#inse

Handling of units related to simple climate modelling.



[![CI](https://github.com/openscm/openscm-units/actions/workflows/ci.yaml/badge.svg?branch=main)](https://github.com/openscm/openscm-units/actions/workflows/ci.yaml)
[![Coverage](https://codecov.io/gh/openscm/openscm-units/branch/main/graph/badge.svg)](https://codecov.io/gh/openscm/openscm-units)
[![Docs](https://readthedocs.org/projects/openscm-units/badge/?version=latest)](https://openscm-units.readthedocs.io)
Expand All @@ -25,7 +23,6 @@ Handling of units related to simple climate modelling.
[![Last Commit](https://img.shields.io/github/last-commit/openscm/openscm-units.svg)](https://github.com/openscm/openscm-units/commits/main)
[![Contributors](https://img.shields.io/github/contributors/openscm/openscm-units.svg)](https://github.com/openscm/openscm-units/graphs/contributors)


<!--- sec-end-description -->

Full documentation can be found at:
Expand All @@ -37,14 +34,14 @@ don't render correctly on GitHub's viewer.

<!--- sec-begin-installation -->

OpenSCM-Units can be installed with conda or pip:
OpenSCM-Units can be installed with pip, mamba or conda:

```bash
pip install openscm-units
mamba install -c conda-forge openscm-units
conda install -c conda-forge openscm-units
```


<!--- sec-end-installation -->

### For developers
Expand All @@ -63,10 +60,9 @@ but we generally discourage this because it can be error prone.
In order to create your environment, run `make virtual-environment`.

If there are any issues, the messages from the `Makefile` should guide you
through. If not, please raise an issue in the [issue tracker][issue_tracker].
through. If not, please raise an issue in the
[issue tracker](https://github.com/openscm/openscm-units/issues).

For the rest of our developer docs, please see [](development-reference).

[issue_tracker]: https://github.com/openscm/openscm-units/issues

<!--- sec-end-installation-dev -->
1 change: 1 addition & 0 deletions changelog/50.trivial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed test installation CI
Loading