8000 Standardize and improve ci-release.yml by anissa111 · Pull Request #531 · NCAR/geocat-comp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Standardize and improve ci-release.yml #531

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

Merged
merged 11 commits into from
Dec 27, 2023
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
41 changes: 22 additions & 19 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
name: CI-release-test
name: CI Release Test
on:
schedule:
- cron: '0 0 * * *' # Daily “At 00:00”
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
if: github.repository == 'NCAR/geocat-comp' && github.ref == 'refs/heads/main'
name: Python (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
defaults:
Expand All @@ -18,31 +23,29 @@ jobs:
os: [ "ubuntu-latest", "macos-latest", "windows-latest" ]
python-version: ["3.9", "3.10", "3.11"]
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.12.0
with:
access_token: ${{ github.token }}
- name: checkout
uses: actions/checkout@v4
- name: environment set up
uses: mamba-org/setup-micromamba@v1
with:
token: ${{ github.token }}
- name: conda_setup
uses: conda-incubator/setup-miniconda@v3
with:
channel-priority: strict
python-version: ${{ matrix.python-version }}
channels: conda-forge
environment-name: import_test
create-args: >-
python=${{ matrix.python-version }}

- name: Install released geocat-comp
- name: Try conda release
run: |
conda create -n import_test geocat-comp
micromamba install geocat-comp
micromamba activate import_test
micromamba list
micromamba activate import_test
python -c "import geocat.comp"

- name: See environment info
- name: Uninstall conda release
run: |
conda activate import_test
conda list
micromamba remove geocat-comp -y

- name: Import
- name: Try PyPI release
run: |
conda activate import_test
pip install geocat-comp
micromamba list
python -c "import geocat.comp"
2 changes: 1 addition & 1 deletion docs/release-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Internal Changes
^^^^^^^^^^^^^^^^
* Upstream CI improvements by `Anissa Zacharias`_ in (:pr:`527`)
* CI improvements by `Anissa Zacharias`_ in (:pr:`528`)

* Improves/standardizes release tests and adds PyPI release testing by `Anissa Zacharias`_ in (:pr:`531`)

v2023.12.0 (December 5, 2023)
-----------------------------
Expand Down
0