Skip to content

Commit

Permalink
Clean up Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
WardBrian committed Oct 4, 2023
1 parent 99f511a commit 72f0734
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 101 deletions.
28 changes: 0 additions & 28 deletions .github/release-drafter.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/build_windows.yml

This file was deleted.

22 changes: 9 additions & 13 deletions .github/workflows/build_ubuntu.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build_ubuntu
name: lint

on:
push:
Expand All @@ -9,38 +9,34 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
python-version: "3.11"

- name: Set up cache
uses: actions/[email protected]
with:
path: .venv
key: venv-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
key: venv-${{ hashFiles('pyproject.toml', 'requirements.txt') }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff pytest mypy
pip install ruff mypy
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install -e .
- name: Lint with ruff
run: |
# stop the build if there are Python syntax errors or undefined names
ruff --format=github --select=E9,F63,F7,F82 --target-version=py39 pytorch_finufft
ruff --format=github --select=E9,F63,F7,F82 --target-version=py311 pytorch_finufft
# default set of ruff rules with GitHub Annotations
ruff --format=github --target-version=py37 pytorch_finufft
- name: Lint with mypy
run: |
mypy pytorch_finufft/
16 changes: 0 additions & 16 deletions .github/workflows/release-drafter.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test_ubuntu
name: test

on:
push:
Expand All @@ -24,13 +24,14 @@ jobs:
uses: actions/[email protected]
with:
path: .venv
key: venv-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
key: venv-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml', 'requirements.txt') }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff pytest mypy
pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install .
- name: Pytest
run: |
Expand Down
Empty file removed .github/workflows/test_windows.yml
Empty file.

0 comments on commit 72f0734

Please sign in to comment.