Skip to content

Commit

Permalink
Merge pull request #13 from City-Bureau/feature/upgrade-python-version
Browse files Browse the repository at this point in the history
[f] Upgrade Python version from 3.9 to 3.11
  • Loading branch information
lamle-ea authored Oct 31, 2024
2 parents 439924e + f7b2c9b commit 51c2a8e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/archive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up Python 3.8
uses: actions/setup-python@v1
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.11

- name: Install Pipenv
uses: dschep/install-pipenv-action@v1
Expand All @@ -31,15 +31,15 @@ jobs:
uses: actions/cache@v1
with:
path: .venv
key: pip-3.8-${{ hashFiles('**/Pipfile.lock') }}
key: pip-3.11-${{ hashFiles('**/Pipfile.lock') }}
restore-keys: |
pip-3.8-
pip-3.11-
pip-
- name: Install dependencies
run: pipenv sync
env:
PIPENV_DEFAULT_PYTHON_VERSION: 3.8
PIPENV_DEFAULT_PYTHON_VERSION: 3.11

- name: Run scrapers
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.9]
python-version: [3.11]

steps:
- uses: actions/checkout@v1

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up Python 3.9
uses: actions/setup-python@v1
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: 3.11

- name: Install Pipenv
uses: dschep/install-pipenv-action@v1
Expand All @@ -37,15 +37,15 @@ jobs:
uses: actions/cache@v1
with:
path: .venv
key: pip-3.9-${{ hashFiles('**/Pipfile.lock') }}
key: pip-3.11-${{ hashFiles('**/Pipfile.lock') }}
restore-keys: |
pip-3.9-
pip-3.11-
pip-
- name: Install dependencies
run: pipenv sync
env:
PIPENV_DEFAULT_PYTHON_VERSION: 3.9
PIPENV_DEFAULT_PYTHON_VERSION: 3.11

- name: Run scrapers
run: |
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ isort = "*"
black = "*"

[requires]
python_version = "3.9"
python_version = "3.11"
2 changes: 1 addition & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/test_sandie_city_council.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def test_status():

def test_location():
assert parsed_items[20]["location"] == {
"name": "San Diego County Administration Center",
"address": "1600 Pacific Hwy., San Diego, California",
"name": "San Diego City Administration Center",
"address": "202 C Street, San Diego",
}


Expand Down

0 comments on commit 51c2a8e

Please sign in to comment.