-
-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (28 loc) · 805 Bytes
/
ci.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
name: test & release
on: push
jobs:
test:
name: test & release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install -r requirements.txt
- name: Test
run: python3 -m unittest ns_schedule_test
- name: Build artifact
if: startsWith(github.ref, 'refs/tags/')
run: make build
- name: Create release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
files: '*.alfred5workflow'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}