Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
chore: merge pull request #437 from welfare-state-analytics/dev
Browse files Browse the repository at this point in the history
v0.12.0
  • Loading branch information
ninpnin authored Dec 18, 2023
2 parents 419c9c4 + 3841968 commit 6bec4cd
Show file tree
Hide file tree
Showing 5 changed files with 427 additions and 91 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,23 @@ jobs:
run: |
pip install pytest nbmake
pytest --nbmake **/*ipynb
dynamic-readme:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
- name: Check that README updating script works
run: |
PYTHONPATH="$PYTHONPATH:." python scripts/stats-dashboard/generate-markdown.py -v v1.1.1
23 changes: 12 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,19 @@ jobs:
pip install cycler
pip install poetry
- name: Zip corpus
run: zip -r corpus.zip corpus
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: corpus.zip
tag: ${{ github.ref }}

- name: Estimate current accuracy and generate a new plot
run: |
PYTHONPATH="$PYTHONPATH:." python scripts/mapping_accuracy_estimate.py
PYTHONPATH="$PYTHONPATH:." python scripts/accuracy_version_plot.py -v ${{ github.ref }}
- name: Update Readme
run: |
PYTHONPATH="$PYTHONPATH:." python scripts/stats-dashboard/generate-markdown.py -v ${{ github.ref }}
- name: Build and publish module
env: # authentication
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
Expand All @@ -45,6 +51,9 @@ jobs:
poetry version $VERSION
poetry build
poetry publish -u "__token__" -p $PYPI_TOKEN
- name: Update Readme
run: |
PYTHONPATH="$PYTHONPATH:." python scripts/stats-dashboard/generate-markdown.py -v ${{ github.ref }}
- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
Expand All @@ -59,14 +68,6 @@ jobs:
git add dist
git add pyproject.toml
git commit -m "chore: build module"
- name: Zip corpus
run: zip -r corpus.zip corpus
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: corpus.zip
tag: ${{ github.ref }}
- name: Push changes
uses: ad-m/github-push-action@master
with:
Expand Down
Loading

0 comments on commit 6bec4cd

Please sign in to comment.