-
Notifications
You must be signed in to change notification settings - Fork 126
49 lines (44 loc) · 1.32 KB
/
monthly-tagger.yml
File metadata and controls
49 lines (44 loc) · 1.32 KB
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
49
name: "Monthly Tagger"
on:
schedule:
- cron: '20 2 1 * *'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Installing conda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
channels: conda-forge
- name: Install Python dependencies
shell: bash -el {0}
run: |
conda install --yes -c conda-forge pythonocc-core
python -m pip install --upgrade pip
python -m pip install .[test]
- name: Test with pytest
shell: bash -el {0}
run: |
python -m pytest
monthly_tag:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT_PYGEM_PUSH }}
- name: Create and push the tag
run: |
VERS="post$(date +%y%m)"
git config --global user.name 'Monthly Tag bot'
git config --global user.email 'mtbot@noreply.github.com'
git commit --allow-empty -m "monthly version $VERS"
git tag -a "v$VERS" -m "Monthly version $VERS"
git push origin "v$VERS"