updates version definitions + steps

This commit is contained in:
Pouria Hadjibagheri 2022-01-03 11:26:41 +00:00
parent 258374400a
commit 38a876162f
No known key found for this signature in database
GPG key ID: B0F90B052A424A3F
3 changed files with 10 additions and 7 deletions

View file

@ -21,7 +21,7 @@ jobs:
- name: Restore docs environment
run: |
python dev.py --with-docs
python dev.py -no-container --with-docs
mkdocs build
- name: Commit documentation changes

View file

@ -1,6 +1,3 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Upload Python Package to PyPI
on:
@ -15,20 +12,23 @@ jobs:
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.*"]
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
@ -63,7 +63,7 @@ jobs:
steps:
- uses: actions/checkout@v2.3.2
run: |
python dev.py --with-docs
python dev.py -no-container --with-docs
mkdocs build
- name: Commit documentation changes

View file

@ -15,20 +15,23 @@ jobs:
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.*"]
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