This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
Merge pull request #32 from kreneskyp/django4.1 #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 3 | |
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@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
sudo apt-get update -y && sudo apt-get install -y libldap2-dev libssl-dev libsasl2-dev | |
python -m pip install --upgrade pip | |
python -m venv venv | |
source venv/bin/activate | |
pip install -r requirements-setup.txt | |
- name: Test with tox | |
run: | | |
source venv/bin/activate | |
tox -vv | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: Install dependencies | |
run: | | |
sudo apt-get update -y && sudo apt-get install -y libldap2-dev libssl-dev libsasl2-dev | |
python -m pip install --upgrade pip | |
python -m venv venv | |
source venv/bin/activate | |
pip install -r requirements-setup.txt | |
- name: lint | |
run: | | |
source venv/bin/activate | |
tox -vv -e lint | |