mirror of
https://github.com/actions/setup-python.git
synced 2025-11-07 05:26:56 +00:00
Compare commits
2 commits
b6295b12a0
...
6458b88d1c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6458b88d1c | ||
|
|
a0bc35baec |
1 changed files with 32 additions and 0 deletions
32
.github/workflows/python-ci.yml
vendored
Normal file
32
.github/workflows/python-ci.yml
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
name: Python CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main, develop ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ main, develop ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v6
|
||||||
|
with:
|
||||||
|
python-version: '3.13' # Set your specific Python version here
|
||||||
|
cache: 'pip'
|
||||||
|
cache-dependency-path: |
|
||||||
|
requirements.txt
|
||||||
|
requirements-test.txt
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
pip install -r requirements.txt
|
||||||
|
pip install -r requirements-test.txt
|
||||||
|
|
||||||
|
# Add more steps here, like running your tests
|
||||||
|
- name: Run tests
|
||||||
|
run: |
|
||||||
|
pytest # Replace with your test command
|
||||||
Loading…
Reference in a new issue