Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test GH Action #458

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/vendor_develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ jobs:

test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:12
env:
DATABASE_URL: "postgres://django:password@localhost:5432/vendor"
strategy:
max-parallel: 1
matrix:
Expand Down
1 change: 1 addition & 0 deletions develop/develop/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'

DATABASES = {}
print(f"DATABASE_URL: {os.environ.get('DATABASE_URL')}", 'sqlite:///{}'.format(os.path.join(BASE_DIR, 'db.sqlite3')))
DATABASES['default'] = dj_database_url.config(conn_max_age=600, ssl_require=False, default=os.environ.get('DATABASE_URL', 'sqlite:///{}'.format(os.path.join(BASE_DIR, 'db.sqlite3')))) # Default to SQLite for testing on GitHub

# DATABASES = {
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ universal = true

[project]
name = "django-vendor"
version = "0.4.16"
version = "0.4.17"

authors = [
{ name="Grant Viklund", email="[email protected]" },
Expand Down
28 changes: 28 additions & 0 deletions src/vendor/migrations/0045_iso4217_update_20241009_2247.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Generated by Django 3.2.25 on 2024-10-09 22:47

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('vendor', '0044_site_settings_stripe_processor_rename'),
]

operations = [
migrations.AlterField(
model_name='customerprofile',
name='currency',
field=models.CharField(choices=[('AFN', 'AFN'), ('EUR', 'EUR'), ('ALL', 'ALL'), ('DZD', 'DZD'), ('USD', 'USD'), ('AOA', 'AOA'), ('XCD', 'XCD'), ('ARS', 'ARS'), ('AMD', 'AMD'), ('AWG', 'AWG'), ('AUD', 'AUD'), ('AZN', 'AZN'), ('BSD', 'BSD'), ('BHD', 'BHD'), ('BDT', 'BDT'), ('BBD', 'BBD'), ('BYN', 'BYN'), ('BZD', 'BZD'), ('XOF', 'XOF'), ('BMD', 'BMD'), ('INR', 'INR'), ('BTN', 'BTN'), ('BOB', 'BOB'), ('BOV', 'BOV'), ('BAM', 'BAM'), ('BWP', 'BWP'), ('NOK', 'NOK'), ('BRL', 'BRL'), ('BND', 'BND'), ('BGN', 'BGN'), ('BIF', 'BIF'), ('CVE', 'CVE'), ('KHR', 'KHR'), ('XAF', 'XAF'), ('CAD', 'CAD'), ('KYD', 'KYD'), ('CLP', 'CLP'), ('CLF', 'CLF'), ('CNY', 'CNY'), ('COP', 'COP'), ('COU', 'COU'), ('KMF', 'KMF'), ('CDF', 'CDF'), ('NZD', 'NZD'), ('CRC', 'CRC'), ('CUP', 'CUP'), ('CUC', 'CUC'), ('ANG', 'ANG'), ('CZK', 'CZK'), ('DKK', 'DKK'), ('DJF', 'DJF'), ('DOP', 'DOP'), ('EGP', 'EGP'), ('SVC', 'SVC'), ('ERN', 'ERN'), ('SZL', 'SZL'), ('ETB', 'ETB'), ('FKP', 'FKP'), ('FJD', 'FJD'), ('XPF', 'XPF'), ('GMD', 'GMD'), ('GEL', 'GEL'), ('GHS', 'GHS'), ('GIP', 'GIP'), ('GTQ', 'GTQ'), ('GBP', 'GBP'), ('GNF', 'GNF'), ('GYD', 'GYD'), ('HTG', 'HTG'), ('HNL', 'HNL'), ('HKD', 'HKD'), ('HUF', 'HUF'), ('ISK', 'ISK'), ('IDR', 'IDR'), ('XDR', 'XDR'), ('IRR', 'IRR'), ('IQD', 'IQD'), ('ILS', 'ILS'), ('JMD', 'JMD'), ('JPY', 'JPY'), ('JOD', 'JOD'), ('KZT', 'KZT'), ('KES', 'KES'), ('KPW', 'KPW'), ('KRW', 'KRW'), ('KWD', 'KWD'), ('KGS', 'KGS'), ('LAK', 'LAK'), ('LBP', 'LBP'), ('LSL', 'LSL'), ('ZAR', 'ZAR'), ('LRD', 'LRD'), ('LYD', 'LYD'), ('CHF', 'CHF'), ('MOP', 'MOP'), ('MKD', 'MKD'), ('MGA', 'MGA'), ('MWK', 'MWK'), ('MYR', 'MYR'), ('MVR', 'MVR'), ('MRU', 'MRU'), ('MUR', 'MUR'), ('XUA', 'XUA'), ('MXN', 'MXN'), ('MXV', 'MXV'), ('MDL', 'MDL'), ('MNT', 'MNT'), ('MAD', 'MAD'), ('MZN', 'MZN'), ('MMK', 'MMK'), ('NAD', 'NAD'), ('NPR', 'NPR'), ('NIO', 'NIO'), ('NGN', 'NGN'), ('OMR', 'OMR'), ('PKR', 'PKR'), ('PAB', 'PAB'), ('PGK', 'PGK'), ('PYG', 'PYG'), ('PEN', 'PEN'), ('PHP', 'PHP'), ('PLN', 'PLN'), ('QAR', 'QAR'), ('RON', 'RON'), ('RUB', 'RUB'), ('RWF', 'RWF'), ('SHP', 'SHP'), ('WST', 'WST'), ('STN', 'STN'), ('SAR', 'SAR'), ('RSD', 'RSD'), ('SCR', 'SCR'), ('SLE', 'SLE'), ('SGD', 'SGD'), ('XSU', 'XSU'), ('SBD', 'SBD'), ('SOS', 'SOS'), ('SSP', 'SSP'), ('LKR', 'LKR'), ('SDG', 'SDG'), ('SRD', 'SRD'), ('SEK', 'SEK'), ('CHE', 'CHE'), ('CHW', 'CHW'), ('SYP', 'SYP'), ('TWD', 'TWD'), ('TJS', 'TJS'), ('TZS', 'TZS'), ('THB', 'THB'), ('TOP', 'TOP'), ('TTD', 'TTD'), ('TND', 'TND'), ('TRY', 'TRY'), ('TMT', 'TMT'), ('UGX', 'UGX'), ('UAH', 'UAH'), ('AED', 'AED'), ('USN', 'USN'), ('UYU', 'UYU'), ('UYI', 'UYI'), ('UYW', 'UYW'), ('UZS', 'UZS'), ('VUV', 'VUV'), ('VES', 'VES'), ('VED', 'VED'), ('VND', 'VND'), ('YER', 'YER'), ('ZMW', 'ZMW'), ('ZWL', 'ZWL'), ('ZWG', 'ZWG'), ('XBA', 'XBA'), ('XBB', 'XBB'), ('XBC', 'XBC'), ('XBD', 'XBD'), ('XTS', 'XTS'), ('XXX', 'XXX'), ('XAU', 'XAU'), ('XPD', 'XPD'), ('XPT', 'XPT'), ('XAG', 'XAG')], default='USD', max_length=4, verbose_name='Currency'),
),
migrations.AlterField(
model_name='invoice',
name='currency',
field=models.CharField(choices=[('AFN', 'AFN'), ('EUR', 'EUR'), ('ALL', 'ALL'), ('DZD', 'DZD'), ('USD', 'USD'), ('AOA', 'AOA'), ('XCD', 'XCD'), ('ARS', 'ARS'), ('AMD', 'AMD'), ('AWG', 'AWG'), ('AUD', 'AUD'), ('AZN', 'AZN'), ('BSD', 'BSD'), ('BHD', 'BHD'), ('BDT', 'BDT'), ('BBD', 'BBD'), ('BYN', 'BYN'), ('BZD', 'BZD'), ('XOF', 'XOF'), ('BMD', 'BMD'), ('INR', 'INR'), ('BTN', 'BTN'), ('BOB', 'BOB'), ('BOV', 'BOV'), ('BAM', 'BAM'), ('BWP', 'BWP'), ('NOK', 'NOK'), ('BRL', 'BRL'), ('BND', 'BND'), ('BGN', 'BGN'), ('BIF', 'BIF'), ('CVE', 'CVE'), ('KHR', 'KHR'), ('XAF', 'XAF'), ('CAD', 'CAD'), ('KYD', 'KYD'), ('CLP', 'CLP'), ('CLF', 'CLF'), ('CNY', 'CNY'), ('COP', 'COP'), ('COU', 'COU'), ('KMF', 'KMF'), ('CDF', 'CDF'), ('NZD', 'NZD'), ('CRC', 'CRC'), ('CUP', 'CUP'), ('CUC', 'CUC'), ('ANG', 'ANG'), ('CZK', 'CZK'), ('DKK', 'DKK'), ('DJF', 'DJF'), ('DOP', 'DOP'), ('EGP', 'EGP'), ('SVC', 'SVC'), ('ERN', 'ERN'), ('SZL', 'SZL'), ('ETB', 'ETB'), ('FKP', 'FKP'), ('FJD', 'FJD'), ('XPF', 'XPF'), ('GMD', 'GMD'), ('GEL', 'GEL'), ('GHS', 'GHS'), ('GIP', 'GIP'), ('GTQ', 'GTQ'), ('GBP', 'GBP'), ('GNF', 'GNF'), ('GYD', 'GYD'), ('HTG', 'HTG'), ('HNL', 'HNL'), ('HKD', 'HKD'), ('HUF', 'HUF'), ('ISK', 'ISK'), ('IDR', 'IDR'), ('XDR', 'XDR'), ('IRR', 'IRR'), ('IQD', 'IQD'), ('ILS', 'ILS'), ('JMD', 'JMD'), ('JPY', 'JPY'), ('JOD', 'JOD'), ('KZT', 'KZT'), ('KES', 'KES'), ('KPW', 'KPW'), ('KRW', 'KRW'), ('KWD', 'KWD'), ('KGS', 'KGS'), ('LAK', 'LAK'), ('LBP', 'LBP'), ('LSL', 'LSL'), ('ZAR', 'ZAR'), ('LRD', 'LRD'), ('LYD', 'LYD'), ('CHF', 'CHF'), ('MOP', 'MOP'), ('MKD', 'MKD'), ('MGA', 'MGA'), ('MWK', 'MWK'), ('MYR', 'MYR'), ('MVR', 'MVR'), ('MRU', 'MRU'), ('MUR', 'MUR'), ('XUA', 'XUA'), ('MXN', 'MXN'), ('MXV', 'MXV'), ('MDL', 'MDL'), ('MNT', 'MNT'), ('MAD', 'MAD'), ('MZN', 'MZN'), ('MMK', 'MMK'), ('NAD', 'NAD'), ('NPR', 'NPR'), ('NIO', 'NIO'), ('NGN', 'NGN'), ('OMR', 'OMR'), ('PKR', 'PKR'), ('PAB', 'PAB'), ('PGK', 'PGK'), ('PYG', 'PYG'), ('PEN', 'PEN'), ('PHP', 'PHP'), ('PLN', 'PLN'), ('QAR', 'QAR'), ('RON', 'RON'), ('RUB', 'RUB'), ('RWF', 'RWF'), ('SHP', 'SHP'), ('WST', 'WST'), ('STN', 'STN'), ('SAR', 'SAR'), ('RSD', 'RSD'), ('SCR', 'SCR'), ('SLE', 'SLE'), ('SGD', 'SGD'), ('XSU', 'XSU'), ('SBD', 'SBD'), ('SOS', 'SOS'), ('SSP', 'SSP'), ('LKR', 'LKR'), ('SDG', 'SDG'), ('SRD', 'SRD'), ('SEK', 'SEK'), ('CHE', 'CHE'), ('CHW', 'CHW'), ('SYP', 'SYP'), ('TWD', 'TWD'), ('TJS', 'TJS'), ('TZS', 'TZS'), ('THB', 'THB'), ('TOP', 'TOP'), ('TTD', 'TTD'), ('TND', 'TND'), ('TRY', 'TRY'), ('TMT', 'TMT'), ('UGX', 'UGX'), ('UAH', 'UAH'), ('AED', 'AED'), ('USN', 'USN'), ('UYU', 'UYU'), ('UYI', 'UYI'), ('UYW', 'UYW'), ('UZS', 'UZS'), ('VUV', 'VUV'), ('VES', 'VES'), ('VED', 'VED'), ('VND', 'VND'), ('YER', 'YER'), ('ZMW', 'ZMW'), ('ZWL', 'ZWL'), ('ZWG', 'ZWG'), ('XBA', 'XBA'), ('XBB', 'XBB'), ('XBC', 'XBC'), ('XBD', 'XBD'), ('XTS', 'XTS'), ('XXX', 'XXX'), ('XAU', 'XAU'), ('XPD', 'XPD'), ('XPT', 'XPT'), ('XAG', 'XAG')], default='USD', max_length=4, verbose_name='Currency'),
),
migrations.AlterField(
model_name='price',
name='currency',
field=models.CharField(choices=[('AFN', 'AFN'), ('EUR', 'EUR'), ('ALL', 'ALL'), ('DZD', 'DZD'), ('USD', 'USD'), ('AOA', 'AOA'), ('XCD', 'XCD'), ('ARS', 'ARS'), ('AMD', 'AMD'), ('AWG', 'AWG'), ('AUD', 'AUD'), ('AZN', 'AZN'), ('BSD', 'BSD'), ('BHD', 'BHD'), ('BDT', 'BDT'), ('BBD', 'BBD'), ('BYN', 'BYN'), ('BZD', 'BZD'), ('XOF', 'XOF'), ('BMD', 'BMD'), ('INR', 'INR'), ('BTN', 'BTN'), ('BOB', 'BOB'), ('BOV', 'BOV'), ('BAM', 'BAM'), ('BWP', 'BWP'), ('NOK', 'NOK'), ('BRL', 'BRL'), ('BND', 'BND'), ('BGN', 'BGN'), ('BIF', 'BIF'), ('CVE', 'CVE'), ('KHR', 'KHR'), ('XAF', 'XAF'), ('CAD', 'CAD'), ('KYD', 'KYD'), ('CLP', 'CLP'), ('CLF', 'CLF'), ('CNY', 'CNY'), ('COP', 'COP'), ('COU', 'COU'), ('KMF', 'KMF'), ('CDF', 'CDF'), ('NZD', 'NZD'), ('CRC', 'CRC'), ('CUP', 'CUP'), ('CUC', 'CUC'), ('ANG', 'ANG'), ('CZK', 'CZK'), ('DKK', 'DKK'), ('DJF', 'DJF'), ('DOP', 'DOP'), ('EGP', 'EGP'), ('SVC', 'SVC'), ('ERN', 'ERN'), ('SZL', 'SZL'), ('ETB', 'ETB'), ('FKP', 'FKP'), ('FJD', 'FJD'), ('XPF', 'XPF'), ('GMD', 'GMD'), ('GEL', 'GEL'), ('GHS', 'GHS'), ('GIP', 'GIP'), ('GTQ', 'GTQ'), ('GBP', 'GBP'), ('GNF', 'GNF'), ('GYD', 'GYD'), ('HTG', 'HTG'), ('HNL', 'HNL'), ('HKD', 'HKD'), ('HUF', 'HUF'), ('ISK', 'ISK'), ('IDR', 'IDR'), ('XDR', 'XDR'), ('IRR', 'IRR'), ('IQD', 'IQD'), ('ILS', 'ILS'), ('JMD', 'JMD'), ('JPY', 'JPY'), ('JOD', 'JOD'), ('KZT', 'KZT'), ('KES', 'KES'), ('KPW', 'KPW'), ('KRW', 'KRW'), ('KWD', 'KWD'), ('KGS', 'KGS'), ('LAK', 'LAK'), ('LBP', 'LBP'), ('LSL', 'LSL'), ('ZAR', 'ZAR'), ('LRD', 'LRD'), ('LYD', 'LYD'), ('CHF', 'CHF'), ('MOP', 'MOP'), ('MKD', 'MKD'), ('MGA', 'MGA'), ('MWK', 'MWK'), ('MYR', 'MYR'), ('MVR', 'MVR'), ('MRU', 'MRU'), ('MUR', 'MUR'), ('XUA', 'XUA'), ('MXN', 'MXN'), ('MXV', 'MXV'), ('MDL', 'MDL'), ('MNT', 'MNT'), ('MAD', 'MAD'), ('MZN', 'MZN'), ('MMK', 'MMK'), ('NAD', 'NAD'), ('NPR', 'NPR'), ('NIO', 'NIO'), ('NGN', 'NGN'), ('OMR', 'OMR'), ('PKR', 'PKR'), ('PAB', 'PAB'), ('PGK', 'PGK'), ('PYG', 'PYG'), ('PEN', 'PEN'), ('PHP', 'PHP'), ('PLN', 'PLN'), ('QAR', 'QAR'), ('RON', 'RON'), ('RUB', 'RUB'), ('RWF', 'RWF'), ('SHP', 'SHP'), ('WST', 'WST'), ('STN', 'STN'), ('SAR', 'SAR'), ('RSD', 'RSD'), ('SCR', 'SCR'), ('SLE', 'SLE'), ('SGD', 'SGD'), ('XSU', 'XSU'), ('SBD', 'SBD'), ('SOS', 'SOS'), ('SSP', 'SSP'), ('LKR', 'LKR'), ('SDG', 'SDG'), ('SRD', 'SRD'), ('SEK', 'SEK'), ('CHE', 'CHE'), ('CHW', 'CHW'), ('SYP', 'SYP'), ('TWD', 'TWD'), ('TJS', 'TJS'), ('TZS', 'TZS'), ('THB', 'THB'), ('TOP', 'TOP'), ('TTD', 'TTD'), ('TND', 'TND'), ('TRY', 'TRY'), ('TMT', 'TMT'), ('UGX', 'UGX'), ('UAH', 'UAH'), ('AED', 'AED'), ('USN', 'USN'), ('UYU', 'UYU'), ('UYI', 'UYI'), ('UYW', 'UYW'), ('UZS', 'UZS'), ('VUV', 'VUV'), ('VES', 'VES'), ('VED', 'VED'), ('VND', 'VND'), ('YER', 'YER'), ('ZMW', 'ZMW'), ('ZWL', 'ZWL'), ('ZWG', 'ZWG'), ('XBA', 'XBA'), ('XBB', 'XBB'), ('XBC', 'XBC'), ('XBD', 'XBD'), ('XTS', 'XTS'), ('XXX', 'XXX'), ('XAU', 'XAU'), ('XPD', 'XPD'), ('XPT', 'XPT'), ('XAG', 'XAG')], default='USD', max_length=4, verbose_name='Currency'),
),
]
Loading