Fix the python version for building to 3.10
This commit is contained in:
parent
fc36606fa7
commit
c7448b70e1
1 changed files with 9 additions and 9 deletions
|
@ -15,17 +15,17 @@ jobs:
|
|||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
python-version: '3.10'
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
pytest
|
||||
|
@ -36,17 +36,17 @@ jobs:
|
|||
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
|
||||
- name: Login to Forgejo Container Registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ${{ secrets.FORGEJO_REGISTRY }}
|
||||
username: ${{ secrets.FORGEJO_USERNAME }}
|
||||
password: ${{ secrets.FORGEJO_PASSWORD }}
|
||||
|
||||
|
||||
- name: Extract metadata for Docker
|
||||
id: meta
|
||||
uses: docker/metadata-action@v4
|
||||
|
@ -57,7 +57,7 @@ jobs:
|
|||
type=ref,event=pr
|
||||
type=semver,pattern={{version}}
|
||||
type=sha,format=short
|
||||
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
|
@ -76,4 +76,4 @@ jobs:
|
|||
- name: Notify about build status
|
||||
run: |
|
||||
echo "Build completed with status: ${{ job.status }}"
|
||||
# Add webhook notification or other notification methods if needed
|
||||
# Add webhook notification or other notification methods if needed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue