Skip to content

Commit

Permalink
Add cron & dispatch to CI + bump python range (#103)
Browse files Browse the repository at this point in the history
* Add cron & dispatch to CI + bump python range

* Update pyproject.toml
  • Loading branch information
IAlibay authored Dec 4, 2024
1 parent b9ea6e4 commit 36a8a98
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: "CI"
on:
workflow_dispatch:
pull_request:
branches:
- main
push:
branches:
- main
schedule:
# Run a cron job once daily
- cron: "0 0 * * *"

concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
Expand All @@ -24,19 +28,19 @@ jobs:
matrix:
os: ['ubuntu',]
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
include:
- os: 'macos'
python-version: "3.11"
python-version: "3.12"

steps:
- uses: actions/checkout@v4
- name: Get current date
id: date
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"
- uses: mamba-org/setup-micromamba@v1
- uses: mamba-org/setup-micromamba@v2
with:
environment-file: environment.yml
environment-name: konnektor
Expand Down Expand Up @@ -70,7 +74,7 @@ jobs:
- name: codecov
if: ${{ github.repository == 'OpenFreeEnergy/konnektor' && github.event != 'schedule'}}
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ authors=[
]
description="Konnektor is a package for calculating networks."
readme="README.md"
requires-python = ">=3.9"
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
Expand Down

0 comments on commit 36a8a98

Please sign in to comment.