Skip to content

Commit

Permalink
Skip prereleases altogther.
Browse files Browse the repository at this point in the history
  • Loading branch information
aliddell committed Aug 9, 2024
1 parent e3b206d commit d773271
Showing 1 changed file with 0 additions and 45 deletions.
45 changes: 0 additions & 45 deletions .github/workflows/test_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,48 +40,3 @@ jobs:
- name: Test docs
run: |
python -m pytest -k test_tutorials --tb=short -s --color=yes --maxfail=5 --log-cli-level=0
test_prerelease:
name: Test docs on latest prerelease
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python:
- "3.10"
- "3.11"
- "3.12"

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}

- name: Check for a pre-release
run: |
export VER=$(curl -s https://pypi.org/rss/project/acquire-imaging/releases.xml | sed -n 's/\s*<title>\([^<]*\).*/ \1/p' | paste -sd, | cut -d, -f2 | awk '{print $1}')
if [[ $VER == *"rc"* ]]; then
echo "PRELEASE=1" >> $GITHUB_ENV
echo "PRELEASE_VERSION=$VER" >> $GITHUB_ENV
else
echo "PRELEASE=0" >> $GITHUB_ENV
fi
shell: bash

- name: Install dependencies
if: env.PRELEASE == 1
run: |
python -m pip install --upgrade pip acquire-imaging==$PRELEASE_VERSION
pip install -r tests/requirements-test.txt
- name: Test docs
if: env.PRELEASE == 1
run: |
python -m pytest -k test_tutorials --tb=short -s --color=yes --maxfail=5 --log-cli-level=0

0 comments on commit d773271

Please sign in to comment.