Skip to content

chore: action upgrades (#32) #36

chore: action upgrades (#32)

chore: action upgrades (#32) #36

name: Version Test
on:
push:
branches: [main]
tags-ignore: ['**']
paths-ignore: ['**.md']
pull_request:
paths-ignore: ['**.md']
concurrency:
group: ${{ github.ref }}-version
cancel-in-progress: true
jobs:
run-this-action:
name: Run action (${{ matrix.version }})
runs-on: [ubuntu-latest]
strategy:
fail-fast: false
matrix:
version:
[
'default',
'0.6.11',
'==0.6.11',
'git+https://github.com/ApeWorX/ape.git@main',
]
steps:
- uses: actions/checkout@v4
- name: Check version pin
id: check-version
run: |
if [[ ${{ matrix.version }} == "default" ]]; then
echo "ape-version=''" >> $GITHUB_OUTPUT
else
echo "ape-version=${{ matrix.version }}" >> $GITHUB_OUTPUT
fi
- name: Run ape action
id: ape-action
uses: ./
with:
ape-version-pin: ${{ steps.check-version.outputs.ape-version }}
- run: ape --help
- name: Print outputs
run: |
echo "Output: ${{ steps.ape-action.outputs.ape-version }}"
- name: Requirements.txt Test
run: |
pip show hypothesis