Skip to content

Commit

Permalink
Add code style check and fix commands
Browse files Browse the repository at this point in the history
  • Loading branch information
nickspaargaren committed Aug 14, 2024
1 parent 4e8dcdb commit b1eedc1
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,19 @@ jobs:
name: Setup Environment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.8
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: pip install -r requirements.txt
cache: 'pip'
- run: pip install -r requirements.txt

code-style:
name: Code style
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Use pip cache
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
- uses: actions/checkout@v4
- name: Check
run: black . --check

Expand Down Expand Up @@ -65,7 +51,7 @@ jobs:
name: Check Unbound list
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install Unbound
run: sudo apt-get update && sudo apt-get install -y unbound
- name: Check unbound list
Expand Down

0 comments on commit b1eedc1

Please sign in to comment.