Skip to content

Workaround for #238 regression / #245 issue #208

Workaround for #238 regression / #245 issue

Workaround for #238 regression / #245 issue #208

Workflow file for this run

name: build
on:
push:
branches:
pull_request:
branches:
env:
PYTEST_ADDOPTS: "--color=yes"
jobs:
test:
name: Test - ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Fish
run: |
sudo apt-add-repository ppa:fish-shell/release-3
sudo apt-get update
sudo apt-get install fish
- name: Upgrade Pip
run: python -m pip install --upgrade pip
- name: Install Poetry
run: python -m pip install poetry
- name: Install dependencies
run: poetry install
- name: Run tests
run: |
fish -n virtualfish/*.fish
poetry run pytest
- name: Check for release
if: github.ref == 'refs/heads/main'
run: |
python -m pip install githubrelease httpx==0.18.2 autopub
echo "##[set-output name=release;]$(autopub check)"
id: check_release
- name: Deploy
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request' && steps.check_release.outputs.release == ''
run: |
git checkout ${GITHUB_REF##*/}
git remote set-url origin https://[email protected]/${GITHUB_REPOSITORY}
autopub prepare
poetry build
autopub commit
autopub githubrelease
poetry publish -u __token__ -p $PYPI_PASSWORD
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}