Switch to Gitea Actions

This commit is contained in:
Val Lorentz 2023-05-20 15:25:12 +02:00
parent b10f01d30b
commit 01c5938e56
2 changed files with 53 additions and 35 deletions

53
.gitea/workflows/test.yml Normal file
View 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"]

View File

@ -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