Skip to content

Commit

Permalink
build: add ci with github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
felipepaes committed Oct 25, 2024
1 parent bab0a26 commit cfe207f
Show file tree
Hide file tree
Showing 3 changed files with 399 additions and 137 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"

- name: Install PDM
run: |
pip install --user pdm
pdm self update
- name: Install dependencies
run: pdm install

- name: Cache PDM packages
uses: actions/cache@v4
with:
path: ~/.cache/pdm
key: ${{ runner.os }}-pdm-${{ hashFiles('pdm.lock') }}
restore-keys: ${{ runner.os }}-pdm-

- name: Lint code
run: pdm run lint

- name: Run tests
run: pdm run test
Loading

0 comments on commit cfe207f

Please sign in to comment.