BANG-480: After resolve a merge conflict (#153) #148
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: Lint and test code | |
on: | |
push: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.8', '3.9', '3.10'] | |
django-version: ['3.1', '3.2', '4.0', '4.1'] | |
drf-version: ['3.12', '3.13'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: actions/cache@v3 | |
with: | |
path: ${{ env.pythonLocation }} | |
key: python-${{ matrix.python-version }}.django-${{ matrix.django-version }}.drf-${{ matrix.drf-version }}.hashes-${{ hashFiles('requirements.txt') }}.${{ hashFiles('requirements-deps.in') }}.${{ hashFiles('requirements-dev.txt') }} | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
pip install django==${{ matrix.django-version }}.* djangorestframework==${{ matrix.drf-version }}.* | |
pip install -r requirements-deps.in | |
pip install -r requirements-dev.txt | |
sudo apt-get install -y --no-install-recommends gdal-bin | |
- name: Run checks | |
run: make style types | |
- name: Run tests and publish coverage | |
uses: paambaati/codeclimate-action@v3.0.0 | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
with: | |
coverageCommand: make coverage |