Skip to content

Commit

Permalink
Merge pull request #20 from ecmwf/develop
Browse files Browse the repository at this point in the history
Changes for version 1.0.0
  • Loading branch information
sametd authored Jan 10, 2024
2 parents 207bac1 + c58e6ae commit 6a3c521
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 32 deletions.
56 changes: 27 additions & 29 deletions .github/workflows/check-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
name: Check and publish

on:

workflow_dispatch: {}

pull_request:
Expand All @@ -14,10 +13,9 @@ on:
types: [created]

jobs:

quality:
name: Code QA
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: pip install black flake8 isort
Expand All @@ -30,8 +28,8 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: ["ubuntu-latest"]
python-version: ["3.6", "3.7", "3.8", "3.9"]
platform: ["ubuntu-20.04", "macos-13"]
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]

name: Python ${{ matrix.python-version }} on ${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
Expand Down Expand Up @@ -86,27 +84,27 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: Check version
run: |
release=${GITHUB_REF##*/}
version=$(python setup.py --version)
test "$release" == "$version"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.8"

- name: Check version
run: |
release=${GITHUB_REF##*/}
version=$(python setup.py --version)
test "$release" == "$version"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@ This enables the creation of automatic workflows, timely triggered as events are


The documentation can be found at https://pyaviso.readthedocs.io/

Note: the package *pyaviso* is a beta version, please carefully test it before using it in an operational setting.
We are looking forward to having your feedback.
Examples demonstrating the usage of aviso for ECMWF notifications can be found at https://github.com/ecmwf/aviso-examples

0 comments on commit 6a3c521

Please sign in to comment.