-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (34 loc) · 985 Bytes
/
ci.yml
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
name: tests
on:
push:
branches:
- main
paths:
- "*.py"
- esgpull/**
- tests/**
- .github/workflows/ci.yml
pull_request:
branches:
- main
paths:
- "*.py"
- esgpull/**
- tests/**
- .github/workflows/ci.yml
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pdm-project/setup-pdm@v3
name: setup pdm
with:
python-version: "3.11" # Version range or exact version of a Python version to use, the same as actions/setup-python
architecture: x64 # The target architecture (x86, x64) of the Python interpreter. the same as actions/setup-python
prerelease: false # Allow prerelease versions to be installed
enable-pep582: true # Enable PEP 582 package loading globally
- name: install dependencies
run: pdm install -G test
- name: run tests
run: pdm run test_coverage