-
Notifications
You must be signed in to change notification settings - Fork 141
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.. (#259)
- Loading branch information
Showing
1 changed file
with
37 additions
and
28 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 |
---|---|---|
|
@@ -12,20 +12,22 @@ 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' | ||
cache-dependency-path: | | ||
setup.py | ||
requirements*.txt | ||
- name: Install dependencies | ||
run: | | ||
python setup.py install | ||
|
@@ -40,11 +42,14 @@ 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' | ||
cache-dependency-path: | | ||
setup.py | ||
requirements*.txt | ||
- name: Install dependencies | ||
run: | | ||
python setup.py install | ||
|
@@ -59,11 +64,14 @@ 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' | ||
cache-dependency-path: | | ||
setup.py | ||
requirements*.txt | ||
- name: Install dependencies | ||
run: | | ||
python setup.py install | ||
|
@@ -79,10 +87,14 @@ 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' | ||
cache-dependency-path: | | ||
setup.py | ||
requirements*.txt | ||
- name: Install dependencies | ||
run: | | ||
|
@@ -96,9 +108,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 | ||
|
@@ -112,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 ] | ||
|
||
|
@@ -135,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' | ||
|
@@ -163,7 +175,7 @@ jobs: | |
coverage run demo_app/manage.py test --noinput --settings=demo_app.settings_test datatableview | ||
- 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 | ||
|
@@ -178,18 +190,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: . | ||
|
||
|
@@ -199,7 +208,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 }} | ||
|
@@ -215,10 +224,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 | ||
|