Skip to content

Commit

Permalink
Added GA CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinbjornt committed Dec 13, 2022
1 parent fdf68b0 commit 32f98b6
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: tests

on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel pytest mypy types-requests
python -m pip install -r requirements.txt
- name: Run mypy
run: |
mypy src/straeto/*.py
- name: Test with pytest
run: |
python setup.py develop
python -m pytest
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
requests>=2.20

0 comments on commit 32f98b6

Please sign in to comment.