mirror of
https://github.com/venomade/calculator.git
synced 2026-11-16 18:27:39 +00:00
33 lines
755 B
YAML
33 lines
755 B
YAML
name: Calculator CI
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
push:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out the code
|
|
uses: actions/checkout@v4
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v7
|
|
with:
|
|
python-version: "3.11"
|
|
- name: Cache pip packages
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ~/.cache/pip
|
|
key: ${{ runner.os }}-pip-${{hashFiles('requirements-dev.txt')}}
|
|
restore-keys: |
|
|
${{ runner.os }}-pip-
|
|
- name: Install the test tools
|
|
run: python -m pip install -r requirements-dev.txt
|
|
- name: Run the tests
|
|
run: python -m pytest -v
|