fix: add optional to currency of Journal model (#510) #49
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish python package | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
tests-ci: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ 3.8 ] #we'll want to add other versions down the road | |
poetry-version: [ 1.1.13 ] | |
os: [ ubuntu-latest ] #in the future we should add windows here | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
# install poetry first for cache | |
- name: setup poetry | |
run: pipx install poetry | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "poetry" | |
- name: Poetry install | |
run: poetry install | |
- name: run tests | |
run: poetry run pytest | |
build-and-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build and publish to pypi | |
uses: JRubics/[email protected] | |
with: | |
pypi_token: ${{ secrets.PYPI_API_TOKEN }} | |
plugins: "poetry-dynamic-versioning" |