Skip to content

Commit

Permalink
Updated the CI to include version checking and a placeholder for depl…
Browse files Browse the repository at this point in the history
…oyment.
  • Loading branch information
eriq-augustine committed Aug 6, 2024
1 parent 5bd3da8 commit 24f309a
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 34 deletions.
28 changes: 0 additions & 28 deletions .ci/run.sh

This file was deleted.

47 changes: 41 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:

strategy:
matrix:
os: ['ubuntu-20.04', 'ubuntu-22.04', 'macos-11', 'macos-12', 'windows-2022']
python-version: ['3.7', '3.8', '3.9', '3.10', 3.11]
os: ['ubuntu-20.04', 'ubuntu-22.04', 'macos-12', 'macos-13', 'windows-2019', 'windows-2022']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']

runs-on: ${{ matrix.os }}

Expand All @@ -35,10 +35,45 @@ jobs:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-${{matrix.os}}-${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements.txt') }}

- name: Python Dependencies
run: |
pip3 install -r requirements.txt
- name: Install Dependencies
shell: bash
run: pip3 install -U -r requirements.txt

- name: Check Python Version Compatibility
shell: bash
run: vermin --no-tips --no-parse-comments --target=3.7- --violations pacai

- name: Run Tests
shell: bash
run: ./.ci/run.sh
run: ./run_tests.py

deploy-docs:
needs: [main]
if: ${{ github.event_name == 'push' && github.repository_owner == 'linqs' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) }}

# We will only run on one config, but using the matrix allows us to use the exact same steps.
strategy:
matrix:
os: ['ubuntu-22.04']
python-version: ['3.10']

runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v4

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

- name: Cache Python Dependencies
uses: actions/cache@v4
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-${{matrix.os}}-${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements.txt') }}

- name: Install Dependencies
shell: bash
run: pip3 install -U -r requirements.txt
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
Pillow>=8.3.2

setuptools
build
twine
packaging>=21.3
pdoc3>=0.7.0
vermin

0 comments on commit 24f309a

Please sign in to comment.