Skip to content

Commit

Permalink
chore: update and rename workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Snoopy1866 committed Sep 11, 2024
1 parent 4169db8 commit 9772a7a
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 20 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Lint and Test

on:
push:
branches:
- "main"
pull_request:

env:
PYTHON_VERSION: "3.12"

jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: "pip"
cache-dependency-path: "requirements-dev.txt"
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Run Linter
run: |
black src --check --verbose
- name: Run Tests
run: |
pytest
20 changes: 0 additions & 20 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit 9772a7a

Please sign in to comment.