Skip to content

Commit

Permalink
✨ Setup Github Action for UV (#3)
Browse files Browse the repository at this point in the history
✨ Setup Uv configuration
  • Loading branch information
yezz123 committed Feb 16, 2024
2 parents 21a63c2 + d9cbd0e commit 37cb611
Show file tree
Hide file tree
Showing 29 changed files with 33,239 additions and 2,204 deletions.
3 changes: 0 additions & 3 deletions .gitattributes

This file was deleted.

83 changes: 0 additions & 83 deletions .github/linters/.eslintrc.yml

This file was deleted.

7 changes: 0 additions & 7 deletions .github/linters/.markdown-lint.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .github/linters/.yaml-lint.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .github/linters/tsconfig.json

This file was deleted.

64 changes: 0 additions & 64 deletions .github/workflows/check-dist.yml

This file was deleted.

62 changes: 0 additions & 62 deletions .github/workflows/ci.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

53 changes: 53 additions & 0 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: default
on:
pull_request:
push:
branches:
- main

jobs:
# run linters and unit tests
lint-and-test-units:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: npm-cache
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm install
- run: npm run format:check
- run: npm run test

# run action on a clean machine without building to check that it works as expected
test-integration:
runs-on: ${{ matrix.os }}

strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
uv-version:
- "0.1.2"
os:
- macos-latest
- ubuntu-latest
- windows-latest
fail-fast: true

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: ./
with:
uv-version: ${{ matrix.uv-version }}
- run: uv --version
45 changes: 0 additions & 45 deletions .github/workflows/linter.yml

This file was deleted.

3 changes: 0 additions & 3 deletions CODEOWNERS

This file was deleted.

Loading

0 comments on commit 37cb611

Please sign in to comment.