Skip to content

Commit

Permalink
Merge pull request #61 from web-push-libs/actions-python
Browse files Browse the repository at this point in the history
Create actions for python module
  • Loading branch information
martinthomson authored Feb 23, 2023
2 parents a4d835e + 41a2c35 commit ab25f35
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python package

on:
push:
branches: [ master ]
paths:
- 'python/**'
pull_request:
branches: [ master ]
paths:
- 'python/**'

jobs:
build:

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

steps:
- uses: actions/checkout@v2
- 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
pip install tox black
- name: Reformat
run: |
cd python; black --check .
- name: Test with tox
run: |
cd python; tox

0 comments on commit ab25f35

Please sign in to comment.