-
Notifications
You must be signed in to change notification settings - Fork 53
66 lines (54 loc) · 1.44 KB
/
main.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
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install dependencies
run: |
pip install --upgrade pip
pip install pylint mypy
- name: Black Lint
uses: psf/black@stable
- name: Pylint
run: pylint --fail-under=8 fuzzable/
# - name: Mypy static typing
# run: mypy fuzzable/
testing:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install Python 3
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install pytest
#- name: Run tests with pytest
# run: pytest
release:
runs-on: ubuntu-20.04
if: "${{ github.event_name == 'push' }}"
steps:
- name: Generate releases
uses: rymndhng/release-on-push-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
bump_version_scheme: patch
tag_prefix: "v"
use_github_release_notes: true
- name: Get outputs
run: |
echo "Got tag name ${{ steps.release.outputs.tag_name }}"
echo "Got release version ${{ steps.release.outputs.version }}"