Skip to content

Commit

Permalink
Merge branch 'main' into test-yanglin
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanglin-Tao committed Feb 9, 2024
2 parents 096b3cf + 562f429 commit 9d5aa15
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
49 changes: 49 additions & 0 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI

on: [push]

jobs:
build-and-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
name: Check out repository code

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install PDM
run: |
curl -sSL https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py | python3 -
echo 'export PATH="$HOME/.local/bin:$PATH"' >> $GITHUB_ENV
- name: Cache PDM dependencies
uses: actions/cache@v2
with:
path: ~/.pdm
key: ${{ runner.os }}-pdm-${{ hashFiles('**/pdm.lock') }}
restore-keys: |
${{ runner.os }}-pdm-
- name: Install Dependencies
run: |
pdm install
- name: Check Code Formatting with Black
run: |
pdm run black --check src/ tests/
- name: Static Analysis with Mypy
run: |
pdm run mypy src/
- name: Linting with Ruff
run: |
pdm run ruff src/ tests/
- name: Run Unit Tests with Pytest
run: |
pdm run pytest
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ To see the status of your build, visit the CircleCI dashboard. There, you can vi

If you need to customize the build process, modify the `.circleci/config.yml` file according to your needs. For detailed instructions, refer to the [CircleCI Configuration Reference](https://circleci.com/docs/2.0/configuration-reference/).

## Contributors - Team Glaceon
## Contributors - Team Glaceon

- Yifei Zhuang
- Fan Yang
Expand Down

0 comments on commit 9d5aa15

Please sign in to comment.