add a publish workflow #108
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: | |
pull_request: | |
push: | |
branches: [master] | |
jobs: | |
tox: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04] | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
sudo apt update | |
sudo apt install python3-btrfsutil python3-virtualenv | |
python3 -m virtualenv /tmp/venv | |
source /tmp/venv/bin/activate | |
python3 -m pip install --upgrade pip | |
python3 -m pip install --upgrade tox | |
sudo -E env PATH=$PATH tox | |
pre-commit: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
py: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.py }} | |
cache: pip | |
- uses: pre-commit/[email protected] |