-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 1.01 KB
/
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
40
41
42
43
44
45
46
name: CI tests
on:
pull_request:
push:
branches:
- main
env:
PYTEST_ADDOPTS: "--color=yes"
# Cancel running workflows when additional changes are pushed
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-a-fallback-value
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test-mc-optimade-package:
name: Test the `mc_optimade` package
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/mc_optimade
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path: |
pyproject.toml
- name: Install latest compatible versions of immediate dependencies
run: |
python -m pip install --upgrade pip
pip install -U setuptools wheel
pip install -e .[tests,dev]
- name: Run tests
run: pytest -vv