Skip to content

Update README.md

Update README.md #33

Workflow file for this run

name: Github Action
on: [push, pull_request]
jobs:
test:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Install python version
uses: gabrielfalcao/pyenv-action@v7
with:
default: 3.9.0
command: pip install -U pip # upgrade pip after installing python
- name: create environment
run: pyenv local 3.9.0 && python -mvenv .venv390
- name: Install dependencies
run: |
pip install -r requirements.txt --upgrade pip
pip install pytest
- name: Run tests
run: pytest
release:
name: Create Release
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout code
uses: actions/checkout@v2
- id: set_var
run: |
content=`cat ./datapackage.json`
# the following lines are only required for multi line json
content="${content//'%'/'%25'}"
content="${content//$'\n'/'%0A'}"
content="${content//$'\r'/'%0D'}"
# end of optional handling for multi line json
echo "::set-output name=packageJson::$content"
- run: |
echo "VERSION=${{fromJson(steps.set_var.outputs.packageJson).version}}" >> $GITHUB_ENV
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.VERSION }}
name: ${{ env.VERSION }}
body: Scenario update
draft: false
prerelease: false