Skip to content

Commit d8896ca

Browse files
authored
Add py310, py311, py312 environments, update CI to use them, and stop caching the Pixi envs in CI (#137)
1 parent 93823ec commit d8896ca

5 files changed

Lines changed: 5057 additions & 106 deletions

File tree

.github/workflows/_docs.yml

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ jobs:
77
build_docs:
88
runs-on: ubuntu-latest
99
strategy:
10-
matrix:
11-
python-version: ["3.10"]
1210
fail-fast: false
1311

1412
defaults:
@@ -26,35 +24,6 @@ jobs:
2624
with:
2725
fetch-depth: 0
2826

29-
# - name: Start MongoDB
30-
# uses: supercharge/mongodb-github-action@1.6.0
31-
32-
# - name: Start Sirepo Docker container
33-
# uses: NSLS-II/start-sirepo-action@v2
34-
# with:
35-
# docker-binary: docker
36-
37-
# - name: Copy databroker config file
38-
# run: |
39-
# set -vxeuo pipefail
40-
# mkdir -v -p ~/.config/databroker/
41-
# wget https://raw.githubusercontent.com/NSLS-II/sirepo-bluesky/main/examples/local.yml -O ~/.config/databroker/local.yml
42-
43-
# - name: Set up Python ${{ matrix.python-version }} with conda
44-
# uses: conda-incubator/setup-miniconda@v2
45-
# with:
46-
# activate-environment: ${{ env.REPOSITORY_NAME }}-py${{ matrix.python-version }}
47-
# auto-update-conda: true
48-
# miniconda-version: "latest"
49-
# python-version: ${{ matrix.python-version }}
50-
# mamba-version: "*"
51-
# channels: conda-forge
52-
53-
- name: Set up Python ${{ matrix.python-version }}
54-
uses: actions/setup-python@v4
55-
with:
56-
python-version: ${{ matrix.python-version }}
57-
5827
- name: Install documentation-building requirements with apt/dpkg
5928
run: |
6029
set -vxeuo pipefail
@@ -69,6 +38,7 @@ jobs:
6938
with:
7039
pixi-version: v0.46.0
7140
environments: docs
41+
cache: false
7242
activate-environment: docs
7343

7444
- name: Build Docs

.github/workflows/_pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v3
11-
- uses: actions/setup-python@v4
1211
- uses: prefix-dev/setup-pixi@v0.8.14
1312
with:
1413
pixi-version: v0.46.0
1514
environments: pre-commit
15+
cache: false
1616
activate-environment: pre-commit
1717
- name: Run pre-commit hooks
1818
run: pre-commit run --all-files

.github/workflows/_testing.yml

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
matrix:
1212
host-os: ["ubuntu-latest"]
13-
python-version: ["3.10", "3.11", "3.12"]
13+
python-version: ["py310", "py311", "py312"]
1414
fail-fast: false
1515

1616
defaults:
@@ -26,40 +26,14 @@ jobs:
2626
- name: Checkout the code
2727
uses: actions/checkout@v3
2828

29-
# - name: Start MongoDB
30-
# uses: supercharge/mongodb-github-action@1.6.0
31-
32-
# - name: Start Sirepo Docker container
33-
# uses: NSLS-II/start-sirepo-action@v2
34-
# with:
35-
# docker-binary: docker
36-
37-
# - name: Copy databroker config file
38-
# run: |
39-
# set -vxeuo pipefail
40-
# mkdir -v -p ~/.config/databroker/
41-
# wget https://raw.githubusercontent.com/NSLS-II/sirepo-bluesky/main/examples/local.yml -O ~/.config/databroker/local.yml
42-
43-
# - name: Set up Python ${{ matrix.python-version }} with conda
44-
# uses: conda-incubator/setup-miniconda@v2
45-
# with:
46-
# activate-environment: ${{ env.REPOSITORY_NAME }}-py${{ matrix.python-version }}
47-
# auto-update-conda: true
48-
# miniconda-version: "latest"
49-
# python-version: ${{ matrix.python-version }}
50-
# mamba-version: "*"
51-
# channels: conda-forge
52-
53-
- name: Set up Python ${{ matrix.python-version }}
54-
uses: actions/setup-python@v4
55-
with:
56-
python-version: ${{ matrix.python-version }}
5729
- name: Install pixi and activate environment
5830
uses: prefix-dev/setup-pixi@v0.8.14
5931
with:
6032
pixi-version: v0.46.0
61-
environments: dev
62-
activate-environment: dev
33+
environments: ${{ matrix.python-version }}
34+
cache: false
35+
activate-environment: ${{ matrix.python-version }}
36+
6337
- name: Test with pytest
6438
run: |
6539
set -vxeuo pipefail

0 commit comments

Comments
 (0)