mirror of
https://github.com/Hopiu/django-markdownx.git
synced 2026-03-16 21:40:24 +00:00
actions for testing PRs and commits to master
This commit is contained in:
parent
4d754b32cf
commit
e12f41c0eb
1 changed files with 34 additions and 0 deletions
34
.github/workflows/run-tests.yml
vendored
Normal file
34
.github/workflows/run-tests.yml
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
name: Python package
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ macos-latest, ubuntu-latest, windows-latest ]
|
||||
python-version: [ 3.7, 3.8, 3.9, 3.10 ]
|
||||
django-version: [3.0.*, 3.1.*, 3.2.*, 4.0.*]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2.3.2
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python dev.py -no-container
|
||||
pip install -q Django==${{ matrix.django-version }}
|
||||
python -m pip install --upgrade pip
|
||||
python setup.py install
|
||||
- name: Test with pytest
|
||||
run: |
|
||||
python runtests.py
|
||||
Loading…
Reference in a new issue