Skip to content

Commit

Permalink
Bump for Node Version and reduce warnings.. (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
rh0dium authored Oct 12, 2022
1 parent 1f87d40 commit 4701a3f
Showing 1 changed file with 37 additions and 28 deletions.
65 changes: 37 additions & 28 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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: |
Expand All @@ -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
Expand All @@ -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 ]

Expand All @@ -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'
Expand All @@ -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
Expand All @@ -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: .

Expand All @@ -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 }}
Expand All @@ -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
Expand Down

0 comments on commit 4701a3f

Please sign in to comment.