Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/github_actions/codecov/codecov-ac…
Browse files Browse the repository at this point in the history
…tion-3.1.5
  • Loading branch information
mdtanker authored Jan 31, 2024
2 parents 7a5ddb4 + d200e9a commit 6829347
Show file tree
Hide file tree
Showing 12 changed files with 1,115 additions and 36 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/get_pypi_stats.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# adapted from icepyx's workflow:
# https://github.com/icesat2py/icepyx/blob/6c187bd35358d88083a5163d3491118aa1aad45c/.github/workflows/get_pypi_stats.yml

name: Get PyPi Stats
on:
schedule:
# runs once a month on the first: "min hr day-of-month month day-of-week"
- cron: "00 12 1 * *"
# Trigger manually from the Actions tab
workflow_dispatch:

jobs:
# This workflow contains a single job called "pypi_stats"
pypi_stats:
# The type of runner that the job will run on
runs-on: ubuntu-latest
if: github.repository_owner == 'polartoolkit'

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
with:
ref: "traffic"

# Calculates pypi stats and clones and stores in CSV file
- name: Update pypi stats files
run: |
pip install -U pip
pip install pypistats pandas seaborn matplotlib
python ./docs/tracking/stats.py
# Commits files to repository
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
author_name: pypistats
message: "Pypi stats auto-update"
add: "./docs/tracking/*"
# add: "./pypistats/*"
34 changes: 0 additions & 34 deletions .github/workflows/push.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: release
name: pypi_release

# define when this workflow is triggered
on:
Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/semantic_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: semantic_release

# define when this workflow is triggered
on:
workflow_dispatch:
push:
branches:
- main

jobs:
# update the changelog and create a commit
changelog:
name: Changelog
runs-on: ubuntu-latest
steps:
# checkout the repo and supply a PAT for the changelog update commit.
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{secrets.PAT}}
# ref: ${{ github.head_ref || github.ref_name }}
- name: update changelog
run: |
pip install -U pip
pip install python-semantic-release >=8
semantic-release changelog
# Commits files to repository
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
author_name: semantic-release
message: "chore: automatically updating changelog [skip ci]"
add: "./CHANGELOG.md"
# determine appropriate version number, update changelog, and create a release commit
semantic-release:
name: Semantic Release
runs-on: ubuntu-latest
# concurrency: release
permissions:
id-token: write
contents: write
steps:
# checkout the repo and supply a PAT for the changelog update commit.
- id: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{secrets.PAT}}

# use semantic-release
- id: semantic-release
uses: python-semantic-release/python-semantic-release@master
with:
github_token: ${{ secrets.PAT }}
changelog: "true"
push: "true"
2 changes: 1 addition & 1 deletion .github/workflows/semantic_release_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ concurrency:

jobs:
# dry run of semantic release without changing anything
release:
semantic-release-check:
name: Semantic Release Check
runs-on: ubuntu-latest
steps:
Expand Down
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@
Automatically updated by
[python-semantic-release](https://python-semantic-release.readthedocs.io/en/latest/)
with commit parsing of [angular commits](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#commits).
## Unreleased

### 📦️ Build
* add requests to deps ([`15ea6e8`](https://github.com/mdtanker/polartoolkit/commit/15ea6e838a980f7c7383819122013fc103b9005f))
* switch GHA from hynek to build and twine ([`91c6ca9`](https://github.com/mdtanker/polartoolkit/commit/91c6ca9d11afd8197bf3fa043c7c8d2a5e9617d3))
* explicitly include packages ([`a76a0e9`](https://github.com/mdtanker/polartoolkit/commit/a76a0e99c2aaec43b0a35218136609a970450b64))
### 🧰 Chores / Maintenance
* add skip ci to changelog commit message ([`6b665ae`](https://github.com/mdtanker/polartoolkit/commit/6b665aed5085b9f9166c996b2bf1cea91c8a5661))
* update changelog an main pushes ([`2dca0fc`](https://github.com/mdtanker/polartoolkit/commit/2dca0fc619b303c9b73c6c69ee15d14165e6be51))
* editing workflows ([`a059f50`](https://github.com/mdtanker/polartoolkit/commit/a059f50061eb8e4399e2aebed5b1491f44dd0e89))
* collect usage stats ([`b5d16ac`](https://github.com/mdtanker/polartoolkit/commit/b5d16ac3792e3ef7791138274d1c069a108cc110))
### ✏️ Formatting
* formatting ([`0b294a1`](https://github.com/mdtanker/polartoolkit/commit/0b294a18d71d909bcbbd398dc0634b548faf7165))
* fix style errors ([`639ba42`](https://github.com/mdtanker/polartoolkit/commit/639ba42c996db46125b5889e5ae35e09217296d7))
* fix indent ([`efee6d7`](https://github.com/mdtanker/polartoolkit/commit/efee6d702e7db92b5f32d4136be2b0b18eeaf54a))

## v0.2.1 (2024-01-29)
### 📦️ Build
Expand Down
Binary file added docs/tracking/downloads.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 6829347

Please sign in to comment.