diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index 8ed0f30a..00000000 --- a/.github/stale.yml +++ /dev/null @@ -1,23 +0,0 @@ -# Configuration for probot-stale - https://github.com/probot/stale - -# Number of days of inactivity before an Issue or Pull Request becomes stale -daysUntilStale: 60 -# Number of days of inactivity before a stale Issue or Pull Request is closed -daysUntilClose: 7 -# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable -exemptLabels: - - pinned - - security -# Label to use when marking as stale -staleLabel: wontfix -# Comment to post when marking as stale. Set to `false` to disable -markComment: > - This issue has been automatically marked as stale because it has not had - recent activity. It will be closed if no further activity occurs. Thank you - for your contributions. -# Comment to post when removing the stale label. Set to `false` to disable -unmarkComment: false -# Comment to post when closing a stale Issue or Pull Request. Set to `false` to disable -closeComment: false -# Limit to only `issues` or `pulls` -only: pulls diff --git a/.github/workflows/monitoring.yml b/.github/workflows/monitoring.yml index a10640a0..fac27495 100644 --- a/.github/workflows/monitoring.yml +++ b/.github/workflows/monitoring.yml @@ -12,17 +12,15 @@ jobs: steps: - name: "Checkout code" - uses: "actions/checkout@v3" + uses: actions/checkout@v4 - name: "Set up Python" - uses: "actions/setup-python@v2" + uses: actions/setup-python@v5 with: python-version: "3.x" - name: "Install requirements" - run: | - pip install beautifulsoup4 + run: pip install beautifulsoup4 - name: "Check daily snapshots" - run: | - ./monitoring/check_phpmyadmin_daily_snapshots.py + run: ./monitoring/check_phpmyadmin_daily_snapshots.py diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6e6dce15..dfcdddfd 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,29 +8,39 @@ on: - master jobs: - test-python: - name: Test on python ${{ matrix.python-version }} and ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] - os: [ubuntu-latest] - steps: - - uses: actions/checkout@v3 - - name: Use python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Install requirements - run: pip install -r requirements-test.txt - - name: Run the migrations - run: ./manage.py migrate - - name: Check missing migrations - run: ./manage.py makemigrations --check - - name: Run python checks - run: ./manage.py check - - name: Run python tests and coverage - run: coverage run --source=. ./manage.py test - - name: Send coverage - uses: codecov/codecov-action@v3 + test-python: + name: Test on Python ${{ matrix.python-version }} and ${{ matrix.os }} + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + os: [ubuntu-latest] + + steps: + - name: "Checkout code" + uses: actions/checkout@v4 + + - name: Use Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install requirements + run: pip install -r requirements-test.txt + + - name: Run the migrations + run: ./manage.py migrate + + - name: Check missing migrations + run: ./manage.py makemigrations --check + + - name: Run Python checks + run: ./manage.py check + + - name: Run Python tests and coverage + run: coverage run --source=. ./manage.py test + + - name: Send coverage + uses: codecov/codecov-action@v3 diff --git a/security/migrations/0010_alter_pmasa_year.py b/security/migrations/0010_alter_pmasa_year.py new file mode 100644 index 00000000..b37b6d64 --- /dev/null +++ b/security/migrations/0010_alter_pmasa_year.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.25 on 2024-06-08 20:47 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('security', '0009_alter_pmasa_id'), + ] + + operations = [ + migrations.AlterField( + model_name='pmasa', + name='year', + field=models.IntegerField(choices=[(2003, 2003), (2004, 2004), (2005, 2005), (2006, 2006), (2007, 2007), (2008, 2008), (2009, 2009), (2010, 2010), (2011, 2011), (2012, 2012), (2013, 2013), (2014, 2014), (2015, 2015), (2016, 2016), (2017, 2017), (2018, 2018), (2019, 2019), (2020, 2020), (2021, 2021), (2022, 2022), (2023, 2023), (2024, 2024)], default=2024), + ), + ]