-
Notifications
You must be signed in to change notification settings - Fork 27
37 lines (36 loc) · 1001 Bytes
/
build.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
on:
push:
branches:
- master
tags:
- '*'
pull_request:
branches:
- '*'
jobs:
Run:
name: ${{ matrix.platform }} Python ${{ matrix.python-version }} Run
runs-on: ${{ matrix.platform }}
strategy:
matrix:
platform: [ ubuntu-latest, macos-13, windows-latest ]
python-version: [ "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Init Environment
run: make init
- name: Lint
run: make lint
- name: Test
run: make test
- name: Package Publish
if: startsWith(matrix.platform, 'ubuntu') && matrix.python-version == '3.9' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run:
make publish