forked from PyDMD/PyDMD
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.1 KB
/
monthly-tag.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Monthly Automated Tag
on:
schedule:
- cron: '20 2 1 * *'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
python-version: ["3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/[email protected]
- name: Set up Python
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
pip install --upgrade pip
pip install .[test]
- name: Test with pytest
run: |
pytest
monthly_tag:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.NDEMO_PAT_TOKEN }}
- name: Create and push the tag
run: |
# CalVer, e.g. 2024.07.19
VERS=$(date +%Y.%m.%d)
git config --global user.name 'Monthly Tag bot'
git config --global user.email '[email protected]'
git tag "$VERS" -a -m "Monthly version $VERS"
git push origin "$VERS"