generated from microsoft/python-package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (69 loc) · 1.78 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Python CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
release:
types: [created]
workflow_dispatch:
jobs:
linting:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Black
uses: microsoft/action-python@0.7.3
with:
black: true
python_version: 3.12
workdir: '.'
- name: Bandit
uses: microsoft/action-python@0.7.3
with:
bandit: true
python_version: 3.12
workdir: '.'
- name: Pylint
uses: microsoft/action-python@0.7.3
with:
pylint: true
python_version: 3.12
workdir: '.'
# - name: Pyright
# uses: microsoft/action-python@0.7.3
# with:
# pyright: true
- name: Flake8
uses: microsoft/action-python@0.7.3
with:
flake8: true
python_version: 3.12
workdir: '.'
testing:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Initialize CASA data directory
run: mkdir -p ~/.casa/data
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
architecture: 'x64'
- name: install nro45data
run: pip install -e .[casa6,test]
- name: Pytest
run: pytest -v
# validation:
# needs: init_casadata
# uses: microsoft/action-python/.github/workflows/validation.yml@0.7.3
# with:
# workdir: '.'
# publish:
# uses: microsoft/action-python/.github/workflows/publish.yml@0.6.4
# secrets:
# PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
# TEST_PYPI_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }}