Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mbsantiago committed Jan 31, 2024
1 parent d92b4c5 commit 4cb63fd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 18 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,12 @@ permissions:
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
- name: Setup PDM
uses: pdm-project/setup-pdm@v3
with:
python-version: ${{ matrix.python-version }}
python-version: "3.11"
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- name: Install dependencies
run: |
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
name: Linting

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Setup PDM
uses: pdm-project/setup-pdm@v3
with:
python-version: "3.11"
- name: Install dependencies
run: pip install black ruff pyright
run: |
cd back
pdm install --dev
- name: Check formatting
run: |
cd back
black --check src
black --check tests
pdm run black --check src
pdm run black --check tests
- name: Check typing
run: |
cd back
pyright src
pdm run pyright src
- name: Check for overall code issues
run: |
cd back
ruff src
pdm run ruff src
6 changes: 1 addition & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,12 @@ on:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
- name: Setup PDM
uses: pdm-project/setup-pdm@v3
with:
python-version: ${{ matrix.python-version }}
python-version: "3.11"
- name: Install dependencies
run: |
cd back
Expand Down

0 comments on commit 4cb63fd

Please sign in to comment.