mirror of
https://github.com/Decompollaborate/rabbitizer.git
synced 2025-01-13 18:38:25 +00:00
30 lines
666 B
YAML
30 lines
666 B
YAML
name: Build Python package in isolated environment
|
|
|
|
# Build on every branch push, tag push, and pull request change:
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
buildstuff:
|
|
name: Build
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
- name: Checkout reposistory
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
run: sudo apt update && sudo apt install -y python3-venv
|
|
|
|
- name: Setup venv
|
|
run: python3 -m venv .venv
|
|
|
|
- name: Install build module
|
|
run: |
|
|
. .venv/bin/activate
|
|
python3 -m pip install build -U
|
|
|
|
- name: Build
|
|
run: |
|
|
. .venv/bin/activate
|
|
python3 -m build
|