-
Notifications
You must be signed in to change notification settings - Fork 543
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
Fix enrollment issues and bump library versions (#438) #439
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
changelog: | ||
exclude: | ||
labels: | ||
- ignore-for-release | ||
authors: | ||
- octocat | ||
- restyled-commits | ||
categories: | ||
- title: "Breaking Changes :hammer_and_wrench:" | ||
labels: | ||
- breaking-change | ||
- title: "New Features :tada:" | ||
labels: | ||
- enhancement | ||
- title: "Bug Fixes :bug:" | ||
labels: | ||
- bug | ||
- title: Other Changes | ||
labels: | ||
- "*" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
pypi_token: | ||
description: 'The pypi token to publish with' | ||
required: true | ||
pypi_url: | ||
description: 'The pypi url to publish to' | ||
required: true | ||
pypi_variable: | ||
description: 'The pypi variable' | ||
required: true | ||
# push: | ||
# tags: | ||
# - '[0-9]+.[0-9]+.[0-9]+' | ||
|
||
name: Publish Release | ||
|
||
jobs: | ||
publish-to-pypi: | ||
name: Publish to pypi | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ 3.11 ] | ||
poetry-version: [ 1.3.2 ] | ||
os: [ ubuntu-latest ] | ||
|
||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Run image | ||
uses: abatilo/actions-poetry@v2.0.0 | ||
with: | ||
poetry-version: ${{ matrix.poetry-version }} | ||
- name: Publish | ||
env: | ||
PYPI_TOKEN: ${{ inputs.pypi_token }} | ||
PYPI_URL: ${{ inputs.pypi_url }} | ||
PYPI_VARIABLE: ${{ inputs.pypi_variable }} | ||
run: | | ||
poetry config repositories.$PYPI_VARIABLE $PYPI_URL | ||
poetry config pypi-token.$PYPI_VARIABLE $PYPI_TOKEN | ||
poetry publish --build -r $PYPI_VARIABLE | ||
|
||
# create-github-release: | ||
# name: Create GitHub Release | ||
# runs-on: ubuntu-latest | ||
# needs: publish-to-pypi | ||
# permissions: | ||
# contents: write | ||
# steps: | ||
# - name: Checkout code | ||
# uses: actions/checkout@v3 | ||
# - name: Create Release | ||
# run: gh release create ${{ github.ref }} --generate-notes | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Start Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Semver type of new version (major / minor / patch)' | ||
required: true | ||
type: choice | ||
options: | ||
- patch | ||
- minor | ||
- major | ||
environment: | ||
description: 'The environment to deploy for' | ||
required: true | ||
type: choice | ||
default: master | ||
options: | ||
- master | ||
- develop | ||
|
||
jobs: | ||
bump-version: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Check out the content (source branch). Use a deploy key so that | ||
# when we push changes, it will trigger the release workflow | ||
# run that runs on: tag. (Using the GitHub token would | ||
# not run the workflow to prevent infinite recursion.) | ||
- name: Check out source | ||
uses: actions/checkout@v2 | ||
with: | ||
ssh-key: ${{ secrets.DEPLOY_KEY }} | ||
env_vars: | | ||
DEPLOYMENT_ENVIRONMENT=${{ github.event.inputs.environment }} | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Set up cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pypoetry/virtualenvs | ||
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry | ||
poetry install --only dev | ||
- name: Setup Git | ||
run: | | ||
git config user.name 'octocat' | ||
git config user.email '20401034+cullzie@users.noreply.github.com' | ||
- name: Bump version | ||
run: poetry run bumpver update --push --${{ github.event.inputs.version }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
aiohttp[speedups]==3.8.1 | ||
aiohttp[speedups]==3.8.4 | ||
beautifulsoup4==4.11.1 | ||
ruamel.yaml==0.16.13 | ||
requests==2.27.1 | ||
cloudscraper==1.2.60 | ||
webdriver-manager==3.7.0 | ||
selenium==3.141.0 | ||
ruamel.yaml==0.17.32 | ||
requests==2.31.0 | ||
cloudscraper==1.2.71 | ||
price-parser==0.3.4 | ||
webdriver-manager==3.8.6 | ||
selenium==4.10.0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,13 +28,13 @@ | |
), | ||
python_requires=">=3.8, <4", | ||
install_requires=[ | ||
"aiohttp[speedups]==3.8.1", | ||
"aiohttp[speedups]==3.8.4", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
aiohttp[speedups]>=3.8.4 unless we want to manually do updates every major release There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same comment as above. It might be worth looking into but generally we won't benefit from taking the latest version of libraries unless they fix an issue we have |
||
"beautifulsoup4==4.11.1", | ||
"ruamel.yaml==0.16.13", | ||
"requests==2.27.1", | ||
"cloudscraper==1.2.60", | ||
"webdriver-manager==3.7.0", | ||
"selenium==3.141.0", | ||
"ruamel.yaml==0.17.32", | ||
"requests==2.31.0", | ||
"cloudscraper==1.2.71", | ||
"webdriver-manager==3.8.6", | ||
"selenium==4.10.0", | ||
"price-parser==0.3.4", | ||
], | ||
setup_requires=["pytest-runner"], | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aiohttp[speedups]>=3.8.4
unless we want to manually do updates every major release
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have tied to specific versions as leaving it open has broken the script in the past