download #10
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: CI | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Configure git | |
run: | | |
git config --global url."https://x-oauth-basic:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository_owner }}".insteadOf https://github.com/${{ github.repository_owner }} | |
- id: get_python_version | |
name: Get Python version | |
run: | | |
set -euo pipefail | |
python_version=$(cat ${GITHUB_WORKSPACE}/.python-version) | |
echo "Python version: ${python_version}" | |
echo "python_version=$python_version" >> "$GITHUB_OUTPUT" | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ steps.get_python_version.outputs.python_version }} | |
- name: Setup pipenv | |
run: python -m pip install --upgrade pipenv wheel | |
- id: cache-pipenv | |
uses: actions/cache@v3 | |
with: | |
path: ~/.local/share/virtualenvs | |
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}-ci | |
- name: Install | |
if: steps.cache-pipenv.outputs.cache-hit != 'true' | |
run: make install_ci | |
env: | |
PIPENV_DEV: true | |
- name: Test | |
run: make test | |
- name: Download | |
uses: dsaltares/fetch-gh-release-asset@master | |
with: | |
repo: 'frontierdigital/vertag' | |
version: 'v0.0.1-unstable1' | |
file: 'vertag_Linux_x86_64.tar.gz' | |
token: ${{ secrets.GITHUB_TOKEN }} |