33 lines
692 B
YAML
33 lines
692 B
YAML
name: Python application
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, master ]
|
|
pull_request:
|
|
branches: [ main, master ]
|
|
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
|
|
build:
|
|
name: Test
|
|
runs-on: ubuntu-22.04
|
|
strategy:
|
|
matrix:
|
|
python-version: [ '3.11' ]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
path: ~/.cache
|
|
python-version: ${{ matrix.python-version }}
|
|
cache: 'pip'
|
|
env:
|
|
CI: true
|
|
AGENT_TOOLSDIRECTORY: /opt/gitea-runner/_work/_tool
|
|
|