Skip to content

Commit

Permalink
refactor actions
Browse files Browse the repository at this point in the history
  • Loading branch information
louisabraham committed Aug 19, 2024
1 parent 40f96f5 commit d8610fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 31 deletions.
31 changes: 1 addition & 30 deletions .github/workflows/build-and-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,36 +7,7 @@ on:
- .github/workflows/build-and-upload.yml
jobs:
testing:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.12"]
steps:
- name: Checkout Repository And Submodules
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set Up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Display Python Version
run: python -c "import sys; print(sys.version)"
shell: bash
- name: Install Pydivsufsort And Other Dependencies
run: |
python -m pip install pytest flake8
bash ./build.sh
python -m pip install . -v
shell: bash
- name: Run Flake8
run: flake8 .
shell: bash
- name: Run Unit Tests
run: |
pytest tests
shell: bash
uses: ./.github/workflows/test.yml
build_linux_macos_wheels:
needs: testing
runs-on: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
pull_request:
paths-ignore:
- "**.md"
workflow_call: {}

jobs:
testing:
Expand All @@ -28,7 +29,6 @@ jobs:
shell: bash
- name: Install Pydivsufsort And Other Dependencies
run: |
bash ./build.sh
python -m pip install pytest flake8 coverage
# -e installs locally, else coverage fails
python -m pip install -v -e .
Expand Down

0 comments on commit d8610fc

Please sign in to comment.