Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ross-spencer committed Mar 24, 2024
1 parent 4479d32 commit ed0f4a6
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 21 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: "linting"
on:
pull_request:
push:
branches:
- "main"
jobs:
lint:
name: "Lint"
runs-on: "ubuntu-latest"
steps:
- name: "Check out repository"
uses: "actions/checkout@v3"
- name: "Set up Python"
uses: "actions/setup-python@v3"
with:
python-version: "3.9"
- name: "Install tox"
run: |
python -m pip install --upgrade pip
pip install tox
- name: "Run tox"
run: |
tox -e linting
25 changes: 4 additions & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: "sqlitefid tests"
name: "unit tests"
on:
pull_request:
push:
Expand All @@ -18,9 +18,9 @@ jobs:
toxenv: "py310"
steps:
- name: "Check out repository"
uses: "actions/checkout@v2"
uses: "actions/checkout@v3"
- name: "Set up Python ${{ matrix.python-version }}"
uses: "actions/setup-python@v2"
uses: "actions/setup-python@v3"
with:
python-version: "${{ matrix.python-version }}"
- name: "Install OS packages"
Expand All @@ -33,7 +33,7 @@ jobs:
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: "Cache pip packages"
uses: "actions/cache@v2"
uses: "actions/cache@v3"
with:
path: "${{ steps.pip-cache.outputs.dir }}"
key: "${{ runner.os }}-pip-${{ hashFiles('**/base.txt', '**/local.txt') }}"
Expand All @@ -48,20 +48,3 @@ jobs:
TOXENV: ${{ matrix.toxenv }}
run: |
tox
lint:
name: "Lint"
runs-on: "ubuntu-18.04"
steps:
- name: "Check out repository"
uses: "actions/checkout@v2"
- name: "Set up Python"
uses: "actions/setup-python@v2"
with:
python-version: "3.9"
- name: "Install tox"
run: |
python -m pip install --upgrade pip
pip install tox
- name: "Run tox"
run: |
tox -e linting

0 comments on commit ed0f4a6

Please sign in to comment.