Skip to content

Commit

Permalink
Merge pull request #31 from pinax/update-ci
Browse files Browse the repository at this point in the history
Update CI to use shared pinax things
  • Loading branch information
paltman authored Nov 24, 2021
2 parents 6e45597 + 4afd07d commit 2e5c2cf
Showing 1 changed file with 4 additions and 37 deletions.
41 changes: 4 additions & 37 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.9

- name: isort
uses: jamescurtin/isort-action@master

- name: Lints
uses: py-actions/flake8@v1
with:
ignore: "E265,E501"
max-line-length: "100"
exclude: "pinax/images/migrations,docs"
path: pinax

- uses: pinax/linting@v2

test:
name: Testing
Expand All @@ -34,23 +17,7 @@ jobs:
django: [2.2.*, 3.2.*]

steps:
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v1
- uses: pinax/testing@v2
with:
python-version: ${{ matrix.python }}

- name: Install Django and Testing Tools
run: |
pip install Django==${{ matrix.django }} coverage django-test-plus
pip install .
- name: Running Python Tests
run: coverage run runtests.py
- name: Upload Coverage Report
if: matrix.django == '3.2.*' && matrix.python == '3.10'
run: |
pip install codecov
coverage xml
codecov --required -X search gcov pycov -f coverage.xml
python: ${{ matrix.python }}
django: ${{ matrix.django }}

0 comments on commit 2e5c2cf

Please sign in to comment.