-
Notifications
You must be signed in to change notification settings - Fork 16
40 lines (36 loc) · 1.06 KB
/
test.yml
File metadata and controls
40 lines (36 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# This workflow will ensure that the pushed contents to the repo
# are not majorly breaking.
name: test
on:
push:
branches: [ master ]
pull_request:
types: [ opened, reopened, synchronize ]
workflow_dispatch:
permissions:
contents: read
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ '3.10', '3.x' ]
name: pytest ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v5
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: "pip" # Cache the pip packages to speed up the workflow
- name: Set up UV
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Install Dependencies and Package
run: uv sync --extra tests
- name: Run Pytest Checks
env:
TEST_API_KEY: ${{ secrets.TEST_API_KEY }}
run: uv run pytest --cov=fortnite_api --import-mode=importlib -vs tests/