forked from vikingco/django-states2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump for Node Version and reduce warnings..
- Loading branch information
Showing
1 changed file
with
21 additions
and
25 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,17 +10,16 @@ jobs: | |
name: Canceling Outstanding Jobs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
- uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
outdated: | ||
name: Outdated packages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
cache: 'pip' | ||
|
@@ -42,8 +41,8 @@ jobs: | |
name: Black | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
cache: 'pip' | ||
|
@@ -65,8 +64,8 @@ jobs: | |
name: Pre-Commit | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
cache: 'pip' | ||
|
@@ -89,8 +88,8 @@ jobs: | |
name: Bandit Security | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
cache: 'pip' | ||
|
@@ -110,9 +109,9 @@ jobs: | |
if: ${{ success() || failure() }} | ||
run: cat report.json | ||
|
||
- name: upload report | ||
- name: "Upload Coverage Results" | ||
if: ${{ success() || failure() }} | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Bandit Security Report | ||
path: report.json | ||
|
@@ -125,7 +124,7 @@ jobs: | |
max-parallel: 4 | ||
matrix: | ||
db: [ sqlite, mysql ] | ||
django-version: [ "~=3.2", "~=4.0" ] | ||
django-version: [ "~=4.0" ] | ||
python-version: [ "3.10" ] | ||
experimental: [ false ] | ||
|
||
|
@@ -148,9 +147,9 @@ jobs: | |
run: | | ||
mysql --host 127.0.0.1 --port 3306 -uroot -ppassword -e "SHOW DATABASES" 2>&1 > /dev/null | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: 'pip' | ||
|
@@ -178,7 +177,7 @@ jobs: | |
coverage run demo_app/manage.py test --noinput --settings=demo_app.settings_test django_states.tests | ||
- name: "Upload Coverage Results for PY:${{ matrix.python-version }} DB:${{ matrix.db}} DJ:${{ matrix.django-version }}" | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: coverage-${{ matrix.python-version }}-${{ matrix.db}}-${{ matrix.django-version }} | ||
path: .coverage | ||
|
@@ -194,18 +193,15 @@ jobs: | |
needs: [ tests ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install dependencies | ||
run: pip install -q coverage | ||
|
||
- uses: actions/checkout@v2 | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v2 | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
path: . | ||
|
||
|
@@ -215,7 +211,7 @@ jobs: | |
coverage xml | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v2 | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
directory: . | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
@@ -231,10 +227,10 @@ jobs: | |
bump_version: ${{ steps.release.outputs.bump_version }} | ||
bump_sha: ${{ steps.release.outputs.bump_sha }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v2 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
|