testtest/.github/workflows/main.yml

39 lines
783 B
YAML
Raw Normal View History

2024-02-26 23:51:21 +00:00
name: Python application
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
permissions:
contents: write
jobs:
2024-02-27 00:07:37 +00:00
build:
name: Test
2024-02-26 23:51:21 +00:00
runs-on: ubuntu-22.04
strategy:
matrix:
2024-02-27 00:07:37 +00:00
python-version: [ '3.11' ]
2024-02-26 23:51:21 +00:00
steps:
2024-02-27 00:09:09 +00:00
- uses: actions/checkout@v4
- name: apt update
run: |
apt update
apt full-upgrade -y
- 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
2024-02-27 00:07:37 +00:00