Switch to GitHub actions

This commit is contained in:
Thor77 2023-01-14 12:33:29 +01:00 committed by Jonas Seydel
parent 60f102cc34
commit 4d09f9d82c
2 changed files with 41 additions and 25 deletions

41
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,41 @@
name: test
on:
push: {}
pull_request: {}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.10
- name: Setup poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.3
- name: Install dependencies
run: poetry install
- name: Lint
run: poetry run pylama tsstats/
test:
strategy:
fail-fast: false
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.3
- name: Install dependencies
run: poetry install
- name: Run tests
run: poetry run pytest tsstats/

View File

@ -1,25 +0,0 @@
language: python
python:
- 3.7
- 3.8
matrix:
include:
- python: 3.8
install:
- pip install -r requirements.txt
- pip install -r requirements-dev.txt
- pip install pylama
script:
- pylama tsstats
install:
- pip install -r requirements.txt
- pip install -r requirements-dev.txt
- pip install pytest-cov
script: py.test --cov=tsstats tsstats/
after_success:
- pip install coveralls
- coveralls