mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 06:24:23 +01:00
Properly test under other databases with Github Actions
This commit is contained in:
3
.github/workflows/lint.yml
vendored
3
.github/workflows/lint.yml
vendored
@@ -11,7 +11,6 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ['3.6']
|
||||
TESTING_DATABASE_URL: ['sqlite://']
|
||||
|
||||
name: Linting
|
||||
steps:
|
||||
@@ -30,6 +29,8 @@ jobs:
|
||||
|
||||
- name: Lint
|
||||
run: make lint
|
||||
env:
|
||||
TESTING_DATABASE_URL: 'sqlite://'
|
||||
|
||||
- name: Lint Dockerfile
|
||||
uses: brpaz/hadolint-action@master
|
||||
|
||||
2
.github/workflows/mysql.yml
vendored
2
.github/workflows/mysql.yml
vendored
@@ -20,7 +20,6 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ['3.6']
|
||||
TESTING_DATABASE_URL: ['mysql+pymysql://root@localhost/ctfd']
|
||||
|
||||
name: Python ${{ matrix.python-version }}
|
||||
steps:
|
||||
@@ -43,6 +42,7 @@ jobs:
|
||||
env:
|
||||
AWS_ACCESS_KEY_ID: AKIAIOSFODNN7EXAMPLE
|
||||
AWS_SECRET_ACCESS_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
|
||||
TESTING_DATABASE_URL: 'mysql+pymysql://root@localhost/ctfd'
|
||||
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1.0.11
|
||||
|
||||
2
.github/workflows/postgres.yml
vendored
2
.github/workflows/postgres.yml
vendored
@@ -29,7 +29,6 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ['3.6']
|
||||
TESTING_DATABASE_URL: ['postgres://postgres@localhost/ctfd']
|
||||
|
||||
name: Python ${{ matrix.python-version }}
|
||||
steps:
|
||||
@@ -52,6 +51,7 @@ jobs:
|
||||
env:
|
||||
AWS_ACCESS_KEY_ID: AKIAIOSFODNN7EXAMPLE
|
||||
AWS_SECRET_ACCESS_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
|
||||
TESTING_DATABASE_URL: 'postgres://postgres@localhost/ctfd'
|
||||
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1.0.11
|
||||
|
||||
2
.github/workflows/sqlite.yml
vendored
2
.github/workflows/sqlite.yml
vendored
@@ -11,7 +11,6 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ['3.6']
|
||||
TESTING_DATABASE_URL: ['sqlite://']
|
||||
|
||||
name: Python ${{ matrix.python-version }}
|
||||
steps:
|
||||
@@ -35,6 +34,7 @@ jobs:
|
||||
env:
|
||||
AWS_ACCESS_KEY_ID: AKIAIOSFODNN7EXAMPLE
|
||||
AWS_SECRET_ACCESS_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
|
||||
TESTING_DATABASE_URL: 'sqlite://'
|
||||
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1.0.11
|
||||
|
||||
Reference in New Issue
Block a user