Skip to content

Commit

Permalink
github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
odrling committed Dec 20, 2023
1 parent ca93b74 commit f88b316
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 96 deletions.
96 changes: 0 additions & 96 deletions .appveyor.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Tests

on: [push]

jobs:
check:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'

- name: install python tests dependencies
run: pip install -r requirements.txt -r requirements_dev.txt

- name: run tests
run: python -m pytest -v

- name: run isort
run: python -m isort . --check

- name: run black
run: python -m black . --check

- name: run flake8
run: python -m flake8

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit f88b316

Please sign in to comment.