feat: Update project to use pyproject
This commit is contained in:
@@ -32,15 +32,10 @@ jobs:
|
||||
else
|
||||
tag_num="${tag}-${tag_num}"
|
||||
fi
|
||||
|
||||
repo=$GITHUB_REPOSITORY
|
||||
repo=${repo#*/}
|
||||
repo=$(echo $repo | tr '[:upper:]' '[:lower:]')
|
||||
echo "container=$repo"
|
||||
|
||||
|
||||
docker build -t $repo:$tag_num .
|
||||
docker tag $repo:$tag_num git.woodburn.au/nathanwoodburn/$repo:$tag_num
|
||||
docker push git.woodburn.au/nathanwoodburn/$repo:$tag_num
|
||||
docker tag $repo:$tag_num git.woodburn.au/nathanwoodburn/$repo:$tag
|
||||
docker push git.woodburn.au/nathanwoodburn/$repo:$tag
|
||||
docker build -t nathanwoodburn:$tag_num .
|
||||
docker tag nathanwoodburn:$tag_num git.woodburn.au/nathanwoodburn/nathanwoodburn:$tag_num
|
||||
docker push git.woodburn.au/nathanwoodburn/nathanwoodburn:$tag_num
|
||||
docker tag nathanwoodburn:$tag_num git.woodburn.au/nathanwoodburn/nathanwoodburn:$tag
|
||||
docker push git.woodburn.au/nathanwoodburn/nathanwoodburn:$tag
|
||||
|
||||
18
.gitea/workflows/check.yml
Normal file
18
.gitea/workflows/check.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
name: Check Code Quality
|
||||
run-name: Ruff CI
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
RuffCheck:
|
||||
runs-on: [ubuntu-latest, amd]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python
|
||||
run: |
|
||||
apt update
|
||||
apt install -y python3 python3-pip
|
||||
- name: Install Ruff
|
||||
run: pip install ruff
|
||||
- name: Run Ruff
|
||||
run: ruff check .
|
||||
Reference in New Issue
Block a user