Skip to content

Commit

Permalink
GitHub action bump (#3)
Browse files Browse the repository at this point in the history
* Bump for Node Version and reduce warnings..
  • Loading branch information
rh0dium authored Oct 12, 2022
1 parent 61a1e31 commit 4a955bb
Showing 1 changed file with 21 additions and 25 deletions.
46 changes: 21 additions & 25 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand All @@ -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'
Expand All @@ -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'
Expand All @@ -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
Expand All @@ -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 ]

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

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

0 comments on commit 4a955bb

Please sign in to comment.