Skip to content

Commit

Permalink
Bump all local versions to 11
Browse files Browse the repository at this point in the history
Signed-off-by: Steven K <[email protected]>
  • Loading branch information
rh0dium committed Jun 19, 2023
1 parent d00868b commit 0958f25
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
cache-dependency-path: |
setup.py
requirements*.txt
- name: Install dependencies
run: |
python setup.py install
Expand All @@ -35,7 +34,7 @@ jobs:
pip install -r requirements_dev.txt --user
- name: outdated
run: pip list --outdated --not-required --exclude=django --user | grep . && echo "There are outdated packages" && exit 1 || echo "All packages up to date"
run: pip list --outdated --not-required --user | grep . && echo "There are outdated packages" && exit 1 || echo "All packages up to date"

black:
name: Black
Expand All @@ -49,7 +48,6 @@ jobs:
cache-dependency-path: |
setup.py
requirements*.txt
- name: Install dependencies
run: |
python setup.py install
Expand All @@ -72,7 +70,6 @@ jobs:
cache-dependency-path: |
setup.py
requirements*.txt
- name: Install dependencies
run: |
python setup.py install
Expand Down Expand Up @@ -103,7 +100,7 @@ jobs:
pip install bandit
- name: Bandit
run: bandit -r simulation -x simulation/tests -s B101 -f json -o report.json
run: bandit -r django_states -x django_states/tests -s B101 -f json -o report.json

- name: Show report
if: ${{ success() || failure() }}
Expand All @@ -123,28 +120,29 @@ jobs:
strategy:
max-parallel: 4
matrix:
db: [ sqlite, mysql ]
db: [ sqlite, mariadb ]
django-version: [ "~=4.2.0" ]
python-version: [ "3.10" ]

services:
mariadb:
image: mariadb:latest
env:
MYSQL_ROOT_PASSWORD: password
MARIADB_ROOT_PASSWORD: password
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping"
--health-cmd="mariadb-admin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
steps:
- name: Verify MySQL connection from host
if: matrix.db == 'mysql'
if: matrix.db == 'mariadb'
run: |
mysql --host 127.0.0.1 --port 3306 -uroot -ppassword -e "SHOW DATABASES" 2>&1 > /dev/null
mysql --host 127.0.0.1 --port 3306 -uroot -ppassword -V
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand Down Expand Up @@ -206,8 +204,9 @@ jobs:

- name: Combine Report Coverage
run: |
coverage combine coverage-*/.coverage
coverage xml
coverage combine coverage-*/.coverage
coverage report --precision=1 --sort=cover --skip-covered --skip-empty
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
Expand Down

0 comments on commit 0958f25

Please sign in to comment.