Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update workflow #21

Merged
merged 1 commit into from
Mar 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading