Switch to Gitea Actions
This commit is contained in:
53
.gitea/workflows/test.yml
Normal file
53
.gitea/workflows/test.yml
Normal file
@ -0,0 +1,53 @@
|
||||
name: Lint and test
|
||||
run-name:
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
flake8:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
- name: Install flake8
|
||||
uses: pip3 install flake8
|
||||
- name: Run flake8
|
||||
uses: flake8 glowtables/
|
||||
|
||||
pylint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
- name: Install pylint
|
||||
uses: pip3 install pylint
|
||||
- name: Run pylint
|
||||
uses: pylint glowtables/
|
||||
|
||||
black:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
- name: Install black
|
||||
uses: pip3 install black==22.8.0
|
||||
- name: Run black
|
||||
uses: black --check glowtables/
|
||||
|
||||
mypy-pytest:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.python }}
|
||||
- name: Install
|
||||
uses: pip3 install mypy .[testing]
|
||||
- name: Run mypy
|
||||
uses: make mypy
|
||||
- name: Run pytest
|
||||
uses: make pytest
|
||||
matrix:
|
||||
python: ["3.9", "3.11"]
|
@ -1,35 +0,0 @@
|
||||
pipeline:
|
||||
flake8:
|
||||
group: lint
|
||||
image: python:3.9
|
||||
commands:
|
||||
- pip3 install flake8
|
||||
- flake8 glowtables/
|
||||
pylint:
|
||||
group: lint
|
||||
image: cytopia/pylint
|
||||
commands:
|
||||
- pylint glowtables/
|
||||
|
||||
black:
|
||||
group: lint
|
||||
image: pyfound/black:22.8.0
|
||||
commands:
|
||||
- black --check glowtables/
|
||||
|
||||
test-py3.9:
|
||||
group: test
|
||||
image: python:3.9
|
||||
commands: &test_commands
|
||||
- apt-get update
|
||||
- pip3 install mypy .[testing]
|
||||
- make mypy
|
||||
- make pytest
|
||||
test-py3.10:
|
||||
group: test
|
||||
image: python:3.10
|
||||
commands: *test_commands
|
||||
test-py3.11:
|
||||
group: test
|
||||
image: python:3.11
|
||||
commands: *test_commands
|
Reference in New Issue
Block a user