Skip to content

Bump xmlschema from 1.9.1 to 1.9.2 #721

Bump xmlschema from 1.9.1 to 1.9.2

Bump xmlschema from 1.9.1 to 1.9.2 #721

Workflow file for this run

name: ci
on:
push:
tags:
- "*"
branches:
- main
pull_request:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup
uses: actions/setup-python@v2
with:
python-version: "3.7"
- name: Install and run linters
run: |
pip install pipenv
pipenv install --dev
pipenv run pylint ing_ynab
pipenv run black --check ing_ynab
check:
name: Check setup.py requirements
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup
uses: actions/setup-python@v2
with:
python-version: "3.7"
- name: Verify dependencies
run: |
pip install pipenv
pipenv install --dev
pipenv run pipenv-setup check
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup
uses: actions/setup-python@v2
with:
python-version: "3.7"
- name: Install and run pytest
run: |
pip install pipenv
pipenv install --dev
pipenv run python -m pytest
docker:
name: Docker
runs-on: ubuntu-latest
needs:
- lint
- check
- test
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login
run: docker login docker.pkg.github.com -u bahlo -p "${{ secrets.GITHUB_TOKEN }}"
- name: Build docker container
if: github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags')
run: docker build -t docker.pkg.github.com/bahlo/ing-ynab/ing-ynab:branch .
- name: Build and publish docker latest
if: github.ref == 'refs/heads/main'
run: |
docker build -t docker.pkg.github.com/bahlo/ing-ynab/ing-ynab:latest .
docker push docker.pkg.github.com/bahlo/ing-ynab/ing-ynab:latest
- name: Build and publish docker image
if: startsWith(github.ref, 'refs/tags')
run: |
export TAG=$(echo "${{ github.ref }}" | sed 's/^refs\/tags\/v//g')
docker build -t docker.pkg.github.com/bahlo/ing-ynab/ing-ynab:$TAG .
docker push docker.pkg.github.com/bahlo/ing-ynab/ing-ynab:$TAG
publish:
name: Publish on PyPi
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags')
needs:
- lint
- check
- test
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup
uses: actions/setup-python@v2
with:
python-version: "3.7"
- name: Build module
run: |
pip3 install setuptools wheel
python3 setup.py sdist bdist_wheel
- name: Publish distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_TOKEN }}