-
Notifications
You must be signed in to change notification settings - Fork 5
64 lines (60 loc) · 1.56 KB
/
ci.yaml
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
name: CI/CD
on:
push:
branches:
- "*"
tags:
- "*"
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- name: install requirements
run: |
python -m pip install -U pip setuptools wheel
python -m pip install pre-commit tox
- name: run pre-commit
run: pre-commit run -a
# - name: mypy
# run: |
# cd flight
# tox -e mypy
# safety-check:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v4
# with:
# python-version: "3.11"
# - name: install requirements
# run: |
# python -m pip install --upgrade pip setuptools
# python -m pip install '.[all]'
# python -m pip install safety
# - name: run safety check
# run: safety check
# test-flight:
# strategy:
# matrix:
# include:
# - os: ubuntu-latest
# python: '3.11'
# toxenv: py311
# - os: ubuntu-latest
# python: '3.12'
# toxenv: py312
# name: "Test Flight on py${{ matrix.python }} x ${{ matrix.os }} "
# runs-on: ${{ matrix.os }}
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python }}
# - run: python -m pip install -U pip setuptools
# - run: python -m pip install tox
# - name: run flight_tests
# run: |
# tox -e ${{ matrix.toxenv }}