File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # To get started with Dependabot version updates, you'll need to specify which
2- # package ecosystems to update and where the package manifests are located.
3- # Please see the documentation for all configuration options:
4- # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
1+ # Dependabot version updates.
2+ # https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
3+ #
4+ # Same shape in every commit-check repository: monthly, one grouped pull
5+ # request per ecosystem, `chore(deps)` commit subjects. The one exception is
6+ # pip here, which stays daily with no cooldown: requirements.txt pins the
7+ # commit-check release this action ships, and a new release should reach the
8+ # action the day it is published.
59
610version : 2
711updates :
812 - package-ecosystem : github-actions
913 directory : /
1014 schedule :
11- interval : " weekly"
15+ interval : monthly
16+ commit-message :
17+ prefix : chore
18+ include : scope
19+ groups :
20+ github-actions :
21+ patterns :
22+ - " *"
23+
1224 - package-ecosystem : pip
1325 directory : /
1426 schedule :
15- interval : " daily"
27+ interval : daily
1628 cooldown :
1729 default-days : 0
30+ commit-message :
31+ prefix : chore
32+ include : scope
Load diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : Test
1+ name : CI
22
33permissions :
44 contents : read
4444
4545 - name : Run unit tests
4646 run : python -m pytest main_test.py -v
47+
48+ coverage :
49+ runs-on : ubuntu-latest
50+ steps :
51+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
52+ with :
53+ # Nothing after checkout needs authenticated git.
54+ persist-credentials : false
55+ - uses : actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
56+ with :
57+ # 3.10 is the real floor, see the test job
58+ python-version : " 3.10"
59+ - name : Install dependencies
60+ run : |
61+ pip install -r requirements.txt
62+ pip install pytest pytest-cov
63+ - name : Run tests with coverage
64+ run : |
65+ pytest --cov=main --cov-report=xml --cov-report=term-missing main_test.py
66+ - name : Upload coverage to Codecov
67+ uses : codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
68+ with :
69+ # Required: main is a protected branch, so Codecov rejects tokenless uploads.
70+ token : ${{ secrets.CODECOV_TOKEN }}
71+ files : ./coverage.xml
72+ flags : unittests
73+ name : codecov-umbrella
74+ # Hard-fail on push to main so a broken upload is visible; on PRs the
75+ # report is informational and a flaky upload should not block review.
76+ fail_ci_if_error : ${{ github.event_name == 'push' }}
Original file line number Diff line number Diff line change 11name : Commit Check
22
3+ permissions :
4+ contents : read
5+
36on :
47 pull_request :
58 branches : ' main'
Load diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : Run pre-commit
1+ name : pre-commit
22permissions :
33 contents : read
44
Original file line number Diff line number Diff line change 66 - " main"
77 workflow_dispatch :
88
9+ permissions : {}
10+
911jobs :
1012 draft-release :
13+ permissions :
14+ contents : write
15+ pull-requests : write
1116 uses : commit-check/.github/.github/workflows/release-drafter.yml@main
Original file line number Diff line number Diff line change 1- name : Release
1+ name : Retag v2
22permissions :
33 contents : write
44
Original file line number Diff line number Diff line change 11MIT License
22
3- Copyright (c) 2023 shenxianpeng (xianpeng.shen@gmail.com)
3+ Copyright (c) 2023 Xianpeng Shen
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
You can’t perform that action at this time.
0 commit comments