Skip to content

Commit

Permalink
GitHub workflows: join into single CI workflow w/ 2 jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
vanschelven committed Oct 3, 2024
1 parent eb82f22 commit 2f6736a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 36 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Flake8
name: Continuous Integration

on:
push:
Expand All @@ -7,8 +7,8 @@ on:
branches: [ "main" ]

jobs:
build:

flake8:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -30,3 +30,28 @@ jobs:
# https://github.com/PyCQA/flake8/issues/515 shows a dead end of doing this "properly"
# so we just specify it on the command line
flake8 --extend-ignore=E127,E741,E501 `git ls-files | grep py$`
tests:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Create wheel and install it
run: |
python -m pip install --upgrade pip
pip install build
python -m build .
pip install django
pip install dist/*.whl
- name: Run Tests
run: |
cd example_django_project
python -Wall manage.py test snappea
34 changes: 0 additions & 34 deletions .github/workflows/tests.yml

This file was deleted.

0 comments on commit 2f6736a

Please sign in to comment.