Skip to content

Commit 3a39b20

Browse files
committed
Fix CI failures
- Switch to (up/down)load-artifact@v4 as v3 is now fully deprecated - Ensure all of the build artifacts have unique names as v4 doesn't support multiple artifacts with the same name - Drop Python 3.7 from the CI matrix as v4 doesn't support it - Fix a couple of docstrings to resolve linting check failure
1 parent 7310923 commit 3a39b20

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

.github/actions/install_requirements/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ runs:
3636
shell: bash
3737

3838
- name: Upload lockfiles
39-
uses: actions/upload-artifact@v3
39+
uses: actions/upload-artifact@v4
4040
with:
41-
name: lockfiles
41+
name: lockfiles_${{ github.job }}_${{ matrix.python }}
4242
path: lockfiles
4343

4444
# This eliminates the class of problems where the requirements being given no

.github/workflows/code.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
fail-fast: false
3333
matrix:
3434
os: ["ubuntu-latest"] # can add windows-latest, macos-latest
35-
python: ["3.7", "3.9", "3.10"]
35+
python: ["3.9", "3.10"]
3636
install: ["-e .[dev]"]
3737
# Make one version be non-editable to test both paths of version code
3838
include:
@@ -88,9 +88,9 @@ jobs:
8888
pipx run build
8989
9090
- name: Upload sdist and wheel as artifacts
91-
uses: actions/upload-artifact@v3
91+
uses: actions/upload-artifact@v4
9292
with:
93-
name: dist
93+
name: dist_${{ github.job }}_${{ matrix.python }}
9494
path: dist
9595

9696
- name: Check for packaging errors
@@ -124,7 +124,7 @@ jobs:
124124
run: echo IMAGE_REPOSITORY=ghcr.io/$(tr '[:upper:]' '[:lower:]' <<< "${{ github.repository }}") >> $GITHUB_ENV
125125

126126
- name: Download wheel and lockfiles
127-
uses: actions/download-artifact@v3
127+
uses: actions/download-artifact@v4
128128
with:
129129
path: artifacts/
130130

@@ -153,7 +153,7 @@ jobs:
153153
uses: docker/build-push-action@v3
154154
with:
155155
build-args: |
156-
PIP_OPTIONS=-r lockfiles/requirements.txt dist/*.whl
156+
PIP_OPTIONS=-r lockfiles_dist_/requirements.txt dist_dist_/*.whl
157157
push: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }}
158158
load: ${{ ! (github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) }}
159159
tags: ${{ steps.meta.outputs.tags }}
@@ -177,11 +177,11 @@ jobs:
177177
HAS_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN != '' }}
178178

179179
steps:
180-
- uses: actions/download-artifact@v3
180+
- uses: actions/download-artifact@v4
181181

182182
- name: Fixup blank lockfiles
183183
# Github release artifacts can't be blank
184-
run: for f in lockfiles/*; do [ -s $f ] || echo '# No requirements' >> $f; done
184+
run: for f in lockfiles_dist_/*; do [ -s $f ] || echo '# No requirements' >> $f; done
185185

186186
- name: Github Release
187187
# We pin to the SHA, not the tag, for security reasons.
@@ -190,8 +190,8 @@ jobs:
190190
with:
191191
prerelease: ${{ contains(github.ref_name, 'a') || contains(github.ref_name, 'b') || contains(github.ref_name, 'rc') }}
192192
files: |
193-
dist/*
194-
lockfiles/*
193+
dist_dist_/*
194+
lockfiles_dist_/*
195195
generate_release_notes: true
196196
env:
197197
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

src/pytac/lattice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""Representation of a lattice object which contains all the elements of the
2-
machine.
2+
machine.
33
"""
44

55
import logging

tests/test_machine.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
""" This file tests the entire loading of the DLS machine from the CSV
2-
files in the data directory. These are more like integration tests,
3-
and allows us to check that the pytac setup is working correctly.
1+
"""This file tests the entire loading of the DLS machine from the CSV
2+
files in the data directory. These are more like integration tests,
3+
and allows us to check that the pytac setup is working correctly.
44
"""
55

66
import re

0 commit comments

Comments
 (0)