Skip to content

Commit

Permalink
github: update CI with latest actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sandre35 committed Jan 10, 2024
1 parent 0836cd3 commit 8eb41c1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 32 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,21 @@
name: Quality

on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0' # weekly
on: push

jobs:
build:
name: quality
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade black flake8
- name: Run checks
run: |
make quality
run: make quality
30 changes: 13 additions & 17 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Tests

on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0' # weekly
on: push

jobs:
build:
Expand All @@ -30,25 +26,25 @@ jobs:
strategy:
matrix:
python-version:
- 3.8
- 3.9
- 3.10
- 3.11
- 3.12
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
django:
- django32
- django42
exclude:
- django: django32
python-version: "3.11"
- django: django32
python-version: "3.12"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
Expand Down

0 comments on commit 8eb41c1

Please sign in to comment.