Migrate from Github Actions to Woodpecker CI
ci/woodpecker/pr/woodpecker Pipeline was successful Details
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Julien Palard 2023-03-30 23:30:27 +02:00
parent ad95dd2676
commit 0c5b9b5bf5
Signed by: mdk
GPG Key ID: 0EFC1AC1006886F8
3 changed files with 10 additions and 45 deletions

1
.github/FUNDING.yml vendored
View File

@ -1 +0,0 @@
github: JulienPalard

View File

@ -1,44 +0,0 @@
name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Run tox
runs-on: ubuntu-latest
strategy:
matrix:
tox:
- py_version: '3.7'
env: py37
- py_version: '3.8'
env: py38
- py_version: '3.9'
env: py39
- py_version: '3.10'
env: py310
- py_version: '3.11'
env: py311,flake8,mypy,black,pylint,pydocstyle
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.tox.py_version }}
- uses: actions/cache@v2
with:
path: .tox
key: ${{ matrix.tox.python-version }}-${{ hashFiles('tox.ini') }}-${{ hashFiles('requirements-dev.txt') }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y gettext
- name: Install tox
run: python3 -m pip install tox
- name: Run tox
run: tox -q -e ${{ matrix.tox.env }}

10
.woodpecker.yml Normal file
View File

@ -0,0 +1,10 @@
---
pipeline:
test:
image: python
commands:
- apt-get update
- apt-get install -y gettext
- python3 -m pip install tox
- tox