mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-02-19 16:06:22 +00:00
35 lines
694 B
YAML
35 lines
694 B
YAML
name: Python tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Python 3.6
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: "3.6"
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
|
- name: Run tests
|
|
run: |
|
|
python3 tests.py
|
|
- name: Build docs
|
|
run: |
|
|
cd docs
|
|
make
|
|
- name: Build packages
|
|
run: |
|
|
python3 setup.py sdist
|
|
python3 setup.py bdist_wheel
|